cleanups for shadergen and the visibility feature

math fixes, feature inclusion removal. will still need to circle back on why the crosshatch.. isn't
This commit is contained in:
AzaezelX 2021-09-17 01:24:20 -05:00
parent 328319b853
commit 21c17d0ed1
4 changed files with 11 additions and 27 deletions

View file

@ -291,8 +291,8 @@ void fizzle(vec2 vpos, float visibility)
// I'm sure there are many more patterns here to
// discover for different effects.
mat2x2 m = mat2x2( vpos.x, vpos.y, 0.916, 0.350 );
if( (visibility - fract( determinant( m ) )) < 0 ) //if(a < 0) discard;
mat2x2 m = mat2x2( vpos.x, 0.916, vpos.y, 0.350 );
if( (visibility - fract( determinant( m ) )) < 0 )
discard;
}
#endif //TORQUE_PIXEL_SHADER