This reverts commit cfb584d98788b8ead2a43ece73e29c4c8fac66fe.
@@ -109,11 +109,5 @@ float linearToRelativeLuminance( const in vec3 color ) {
return dot( weights, color.rgb );
-}
-
-bool isPerspectiveMatrix( mat4 projectionMatrix ) {
- return projectionMatrix[ 2 ][ 3 ] == - 1.0;
}
`;
@@ -20,7 +20,7 @@ void main() {
#ifdef USE_SIZEATTENUATION
- bool isPerspective = isPerspectiveMatrix( projectionMatrix );
+ bool isPerspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 );
if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
#ifndef USE_SIZEATTENUATION
if ( isPerspective ) scale *= - mvPosition.z;