From 451568e5a9fd93bb594d055ae1e672ea0951fff7 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 2 Mar 2014 16:06:01 +0100 Subject: The future of raylib! Mapping of OpenGL 1.1 immediate mode functions to OpenGL 3.2+ (and OpenGL ES 2.0) programmable pipeline --- src/simple150.frag | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/simple150.frag (limited to 'src/simple150.frag') diff --git a/src/simple150.frag b/src/simple150.frag new file mode 100644 index 00000000..61b337ed --- /dev/null +++ b/src/simple150.frag @@ -0,0 +1,15 @@ +#version 150 + +uniform sampler2D texture0; + +in vec2 fragTexCoord; +in vec4 fragColor; + +out vec4 pixelColor; + +void main() +{ + // Output pixel color + pixelColor = texture(texture0, fragTexCoord) * fragColor; + //pixelColor = fragColor; +} \ No newline at end of file -- cgit v1.2.3