Commit Graph

9 Commits (029eb1ade6338bb55589b2e2aeb95a2b7141eb69)

Author SHA1 Message Date
AnyOldName3 34af58f53f Use correct extension name.
Like 0068c7bb25, but for other shaders, too
4 years ago
AnyOldName3 3103266406 Add correct preprocessor check when enabling extension 4 years ago
AnyOldName3 d13459ecf9 Scale mipmap alpha to preserve coverage 4 years ago
AnyOldName3 ce2bcba5d4 Replace deprecated alpha test in shader visitor 4 years ago
AnyOldName3 53b9b41159 Rely on existing alpha test for non-blended shadow casting 5 years ago
AnyOldName3 12044a607b Only alpha-test shadows when necessary
Previously we always discarded shadow map fragments if the alpha channel of the output would have been low, but there were some (modded) assets that have non-one alpha but have testing or blending disabled so end up opaque anyway. This lets the shadows of those objects match.
5 years ago
AnyOldName3 ad9dab8593
Switch alpha test from < to <= to fix weird shadows on actors with 50% chameleon 6 years ago
AnyOldName3 85b97d19d3 Add alpha threshold for shadow casting. 6 years ago
AnyOldName3 474770eca8 Switch shadow map rendering to a specialised, simplified shader. 6 years ago