OpenGTA/OpenGTA-win/assets/gl1SimpleFragmentShader.txt

14 lines
296 B
Plaintext
Raw Permalink Normal View History

2018-09-22 21:26:15 +00:00
precision mediump float;
varying vec2 TexCoord;
uniform sampler2D Texture;
void main()
{
vec4 texColor = texture2D(Texture, TexCoord).rgba;
//gl_FragColor = texColor;
gl_FragColor = vec4(texColor.rgb*2.0 + vec3(0.2, 0.2, 0.2), texColor.a);
//gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}