Skip to content

Commit

Permalink
Gloom: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 295e7cf commit c470b49
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Expand Up @@ -14,14 +14,6 @@ void main()
for (int i = 0; i < 3; ++i) {
vWorldPos = gl_in[i].gl_Position;
gl_Position = uCubeFaceMatrices[face] * vWorldPos;
/*
float dp = dot(surface.normal, uLightDir);
if (dp > 0.0) {
// Apply a slight bias to backfaces to avoid peter panning.
//gl_Position.z *= 1.0 + 0.1*(1.0 - dp);
gl_Position.z -= 0.004;
}
*/
EmitVertex();
}
EndPrimitive();
Expand Down
Expand Up @@ -17,14 +17,6 @@ void main()
vWorldPos = gl_in[i].gl_Position;
vFaceUV = vUV[i];
gl_Position = uCubeFaceMatrices[face] * vWorldPos;
/*
float dp = dot(surface.normal, uLightDir);
if (dp > 0.0) {
// Apply a slight bias to backfaces to avoid peter panning.
//gl_Position.z *= 1.0 + 0.1*(1.0 - dp);
gl_Position.z -= 0.004;
}
*/
EmitVertex();
}
EndPrimitive();
Expand Down

0 comments on commit c470b49

Please sign in to comment.