Skip to content

Conversation

@slipher
Copy link
Member

@slipher slipher commented Aug 20, 2025

Fixes #1734.

In bindful texture mode the wrong image was being used for the depth
image: depthtile1RenderImage instead of the intended
depthtile2RenderImage.

Fixes DaemonEngine#1734.
Mistakes with texture binding that didn't break anything:
- Heat haze doesn't really use height map
- 2 shaders used the wrong uniform name when attempting to assign a
  texture uniform to unit 0, but unit 0 is the default so it didn't
  matter.
SetShaderProgramUniforms is an overridable function of GLShader used to
configure texture mapping units. Material system implies bindless
textures meaning TMUs are not used, so material system shaders should
not implement that function.
This shader has hard-coded texture unit bindings in the GLSL, so setting
uniforms has no effect.
@slipher slipher merged commit 2d11cdd into DaemonEngine:master Aug 22, 2025
9 checks passed
@slipher slipher deleted the fix-lighttile branch August 22, 2025 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad depth test for dynamic lights

2 participants