Adjust clipping planes

Fixes #1183
This commit is contained in:
Sascha Willems 2025-02-01 15:35:19 +01:00
parent 6c7f72f0bd
commit 3ecc0d2e1f
4 changed files with 2 additions and 2 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, 1.5);
vec4 clipPlane = vec4(0.0, -1.0, 0.0, 0.0);
gl_ClipDistance[0] = dot(vec4(inPos, 1.0), clipPlane);
}

View file

@ -37,7 +37,7 @@ VSOutput main(VSInput input)
output.LightVec = normalize(ubo.lightPos.xyz - output.EyePos);
// Clip against reflection plane
float4 clipPlane = float4(0.0, -1.0, 0.0, 1.5);
float4 clipPlane = float4(0.0, -1.0, 0.0, 0.0);
output.ClipDistance = dot(input.Pos, clipPlane);
return output;
}