diff options
Diffstat (limited to 'Shaders/ui.frag')
-rw-r--r-- | Shaders/ui.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Shaders/ui.frag b/Shaders/ui.frag new file mode 100644 index 0000000..737344e --- /dev/null +++ b/Shaders/ui.frag @@ -0,0 +1,12 @@ +uniform sampler2D sampler; + +varying vec2 texCoord; +varying vec4 color; + +void main(){ + vec4 pixelColor = texture2D(sampler, vec2(texCoord.x, texCoord.y)); + //TODO allow antialiasing + //if (pixelColor.w != 1.0f) + // discard; + gl_FragColor = pixelColor * color; +} |