Skip to content

Commit 3ecc0d2

Browse files
committed
Adjust clipping planes
Fixes SaschaWillems#1183
1 parent 6c7f72f commit 3ecc0d2

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

shaders/glsl/offscreen/phong.vert

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ void main()
2626
outLightVec = normalize(ubo.lightPos.xyz - outEyePos);
2727

2828
// Clip against reflection plane
29-
vec4 clipPlane = vec4(0.0, -1.0, 0.0, 1.5);
29+
vec4 clipPlane = vec4(0.0, -1.0, 0.0, 0.0);
3030
gl_ClipDistance[0] = dot(vec4(inPos, 1.0), clipPlane);
3131
}

shaders/glsl/offscreen/phong.vert.spv

188 Bytes
Binary file not shown.

shaders/hlsl/offscreen/phong.vert

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ VSOutput main(VSInput input)
3737
output.LightVec = normalize(ubo.lightPos.xyz - output.EyePos);
3838

3939
// Clip against reflection plane
40-
float4 clipPlane = float4(0.0, -1.0, 0.0, 1.5);
40+
float4 clipPlane = float4(0.0, -1.0, 0.0, 0.0);
4141
output.ClipDistance = dot(input.Pos, clipPlane);
4242
return output;
4343
}

shaders/hlsl/offscreen/phong.vert.spv

-16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)