(#3596) fixed normals in rings_geom_fs.glsl

This commit is contained in:
benpm
2025-05-01 11:10:16 -06:00
parent 94dfb26ee0
commit c8243d75c1

View File

@@ -41,7 +41,7 @@ Fragment getFragment() {
float radius = length(st);
// Discard if normal is perpendicular to the camera direction
if (abs(dot(vs_normal, vec3(0.0, 0.0, 1.0))) <= 1.0e-3) {
if (abs(dot(normalize(vs_normal), vec3(0.0, 0.0, 1.0))) <= 1.0e-3) {
discard;
}