16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 09:19:18 +02:00
Files
maszyna/betterRenderer/shaders/manul/alpha_mask.hlsli
2025-04-15 01:32:56 +02:00

9 lines
240 B
HLSL

#ifndef ALPHA_MASK_HLSLI
#define ALPHA_MASK_HLSLI
void AlphaMask(in float alpha) {
if(g_DrawConstants.m_AlphaThreshold >= 0. ? (alpha < g_DrawConstants.m_AlphaThreshold) : (alpha >= -g_DrawConstants.m_AlphaThreshold)) discard;
}
#endif