Seems you’re looking for this: https://codepen.io/prisoner849/pen/gOaMXMy?editors=0010
vec3 vNormal = normalMatrix * normal;
vVisible = step( 0., dot( -normalize( mvPosition.xyz ), normalize( vNormal ) ) );
Seems you’re looking for this: https://codepen.io/prisoner849/pen/gOaMXMy?editors=0010
vec3 vNormal = normalMatrix * normal;
vVisible = step( 0., dot( -normalize( mvPosition.xyz ), normalize( vNormal ) ) );