dcad21b830
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
16 lines
204 B
GLSL
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;
|
|
}
|