mirror of
https://github.com/leozide/leocad
synced 2024-12-28 22:23:35 +01:00
12 lines
268 B
Text
12 lines
268 B
Text
|
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 = mix(MaterialColor, TexelColor, TexelColor.a);
|
||
|
}
|