stk-code_catmod/data/shaders/alphatest_particle.frag
Benau dcad21b830 Use uniform rendering code for particle rendering
1. Remove pow in shader and do srgb conversion in code

2. Fix setGreen and setBlue order

3. Multiply particle color first like vertex color in the other shaders

4. Fix incorrect smoothstep
2022-09-09 09:41:32 +08:00

16 lines
204 B
GLSL

uniform sampler2D tex;
in vec2 tc;
in vec4 pc;
out vec4 FragColor;
void main(void)
{
vec4 color = texture(tex, tc) * pc;
if (color.a < 0.5)
{
discard;
}
FragColor = color;
}