diff options
author | David Boddie <david.boddie@nokia.com> | 2011-05-11 17:35:46 +0200 |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-05-23 14:24:07 +0200 |
commit | 0cbcc61ef35b9bce1d65d048853c79004b755b87 (patch) | |
tree | 0e10f00827d9d3b84862e371d163f1b2774ee996 /examples/opengl/cube/fshader.glsl | |
parent | 0748751c9f097d9d866605306bbdd4b96e2a5c4e (diff) |
Squashed commit of changes from the 4.8-temp branch.
Diffstat (limited to 'examples/opengl/cube/fshader.glsl')
-rw-r--r-- | examples/opengl/cube/fshader.glsl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/opengl/cube/fshader.glsl b/examples/opengl/cube/fshader.glsl new file mode 100644 index 0000000000..18068cf0e6 --- /dev/null +++ b/examples/opengl/cube/fshader.glsl @@ -0,0 +1,18 @@ +#ifdef GL_ES +// Set default precision to medium +precision mediump int; +precision mediump float; +#endif + +uniform sampler2D texture; + +varying vec2 v_texcoord; + +//! [0] +void main() +{ + // Set fragment color from texture + gl_FragColor = texture2D(texture, v_texcoord); +} +//! [0] + |