mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 13:59:19 +02:00
add depth prepass in preparation for moving from deferred back to forward renderer
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
#define ALPHA_MASK_HLSLI
|
||||
|
||||
void AlphaMask(in float alpha) {
|
||||
#if (PASS & FORWARD_LIGHTING) || defined (SHADOW)
|
||||
if(g_DrawConstants.m_AlphaThreshold >= 0. ? (alpha < g_DrawConstants.m_AlphaThreshold) : (alpha >= -g_DrawConstants.m_AlphaThreshold)) discard;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user