From 32c030c9fca7046b3a3edfa15584050251aeba4f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 17 Feb 2014 20:59:34 -0500 Subject: Remove shader example. * examples/Makefile.am (examples_DATA): Remove 'shader.scm'. (shaderdir, shader_DATA): Remove. * examples/shader.scm: Delete file. * examples/shaders/fragment-shader.glsl: Delete file. * examples/shaders/vertex-shader.glsl: Delete file. --- examples/shaders/fragment-shader.glsl | 7 ------- examples/shaders/vertex-shader.glsl | 13 ------------- 2 files changed, 20 deletions(-) delete mode 100644 examples/shaders/fragment-shader.glsl delete mode 100644 examples/shaders/vertex-shader.glsl (limited to 'examples/shaders') diff --git a/examples/shaders/fragment-shader.glsl b/examples/shaders/fragment-shader.glsl deleted file mode 100644 index 9be52f0..0000000 --- a/examples/shaders/fragment-shader.glsl +++ /dev/null @@ -1,7 +0,0 @@ -#version 120 - -uniform sampler2D color_texture; - -void main (void) { - gl_FragColor = texture2D(color_texture, gl_TexCoord[0].st); -} diff --git a/examples/shaders/vertex-shader.glsl b/examples/shaders/vertex-shader.glsl deleted file mode 100644 index 2a7a4a4..0000000 --- a/examples/shaders/vertex-shader.glsl +++ /dev/null @@ -1,13 +0,0 @@ -#version 120 - -uniform float angle; - -void main(void) { - mat4 RotationMatrix = mat4(cos(angle), -sin(angle), 0.0, 0.0, - sin(angle), cos(angle), 0.0, 0.0, - 0.0, 0.0, 1.0, 0.0, - 0.0, 0.0, 0.0, 1.0); - - gl_Position = gl_ModelViewProjectionMatrix * RotationMatrix * gl_Vertex; - gl_TexCoord[0] = gl_MultiTexCoord0; -} -- cgit v1.2.3