author | unC0Rr |
Wed, 20 Nov 2024 21:37:47 +0100 | |
branch | transitional_engine |
changeset 16067 | d903f8d2395a |
parent 15314 | 042a5e8d9c59 |
permissions | -rw-r--r-- |
#ifdef GL_ES precision mediump float; #endif uniform sampler2D tex0; uniform vec4 tint; uniform bool tintAdd; uniform bool enableTexture; varying vec2 tex; void main() { if(enableTexture){ if (tintAdd){ vec4 tint_ = vec4(tint.xyz, 0.0); gl_FragColor = clamp(texture2D(tex0, tex) + tint_, 0.0, 1.1); }else{ gl_FragColor = texture2D(tex0, tex) * tint; } }else{ gl_FragColor = tint; } }