Fix clipping plane position in GLSL shader

Refs #1183
This commit is contained in:
Sascha Willems 2025-07-28 21:36:15 +02:00
parent 3220691068
commit ca9be0c589
2 changed files with 1 additions and 1 deletions

View file

@ -26,6 +26,6 @@ void main()
outLightVec = normalize(ubo.lightPos.xyz - outEyePos);
// Clip against reflection plane
vec4 clipPlane = vec4(0.0, -1.0, 0.0, 0.0);
vec4 clipPlane = vec4(0.0, 0.0, 0.0, 0.0);
gl_ClipDistance[0] = dot(vec4(inPos, 1.0), clipPlane);
}