]> git.tdb.fi Git - libs/gl.git/commitdiff
Implement alpha cutoff for materials
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 09:55:49 +0000 (11:55 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Mar 2022 10:06:02 +0000 (12:06 +0200)
Having to implement it separately in each material's shader is not
optimal, but since they each define their own uniform block, no better
solution is readily apparent.

The occluder shader also supports alpha cutoff so that objects with
such materials can cast proper shadows.


No differences found