leocad/resources/shaders/unlit_texture_modulate_ps.glsl

12 lines
279 B
Text
Raw Normal View History

2018-11-23 01:13:02 +01:00
LC_PIXEL_INPUT vec2 PixelTexCoord;
LC_PIXEL_OUTPUT
uniform mediump vec4 MaterialColor;
uniform sampler2D Texture;
void main()
{
LC_SHADER_PRECISION vec4 TexelColor = texture2D(Texture, PixelTexCoord);
gl_FragColor = vec4(MaterialColor.rgb, TexelColor.a * MaterialColor.a);
}