diff options
Diffstat (limited to 'Shaders/ui.frag')
-rw-r--r-- | Shaders/ui.frag | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Shaders/ui.frag b/Shaders/ui.frag index 737344e..118108c 100644 --- a/Shaders/ui.frag +++ b/Shaders/ui.frag @@ -1,12 +1,16 @@ +#version 130 + uniform sampler2D sampler; -varying vec2 texCoord; -varying vec4 color; +in vec2 texCoord; +in vec4 color; + +out vec4 FragColor; void main(){ vec4 pixelColor = texture2D(sampler, vec2(texCoord.x, texCoord.y)); //TODO allow antialiasing //if (pixelColor.w != 1.0f) // discard; - gl_FragColor = pixelColor * color; + FragColor = pixelColor * color; } |