Skip to content

Commit ca9be0c

Browse files
committed
Fix clipping plane position in GLSL shader
Refs SaschaWillems#1183
1 parent 3220691 commit ca9be0c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
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, 0.0);
29+
vec4 clipPlane = vec4(0.0, 0.0, 0.0, 0.0);
3030
gl_ClipDistance[0] = dot(vec4(inPos, 1.0), clipPlane);
3131
}

shaders/glsl/offscreen/phong.vert.spv

-220 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)