Skip to content

Commit cac2c98

Browse files
committed
add optional shading normal for thickened face
1 parent 7e85229 commit cac2c98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shaders/face_gs.glsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ void EmitSide(vec4 p0, vec4 p1, vec4 n0, vec4 n1)
4444

4545
void EmitBottom(vec4 p0, vec4 p1, vec4 p2)
4646
{
47+
// If prefer backside as normal color, remove the comment here.
48+
//normal = -normal;
4749
pos = p0.xyz - vNorm[0].xyz * thickness;
4850
gl_Position = proj_matrix * vec4(pos, 1.0f);
4951
EmitVertex();

0 commit comments

Comments
 (0)