From 7028cbe09c688437910a25623098762bf0fa592d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 28 Mar 2016 22:28:34 +1000 Subject: Move Irrlicht to src/others. --- libraries/irrlicht-1.8.1/media/opengl.vert | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 libraries/irrlicht-1.8.1/media/opengl.vert (limited to 'libraries/irrlicht-1.8.1/media/opengl.vert') diff --git a/libraries/irrlicht-1.8.1/media/opengl.vert b/libraries/irrlicht-1.8.1/media/opengl.vert deleted file mode 100644 index bfee816..0000000 --- a/libraries/irrlicht-1.8.1/media/opengl.vert +++ /dev/null @@ -1,27 +0,0 @@ - -uniform mat4 mWorldViewProj; -uniform mat4 mInvWorld; -uniform mat4 mTransWorld; -uniform vec3 mLightPos; -uniform vec4 mLightColor; - -void main(void) -{ - gl_Position = mWorldViewProj * gl_Vertex; - - vec4 normal = vec4(gl_Normal, 0.0); - normal = mInvWorld * normal; - normal = normalize(normal); - - vec4 worldpos = gl_Vertex * mTransWorld; - - vec4 lightVector = worldpos - vec4(mLightPos,1.0); - lightVector = normalize(lightVector); - - float tmp2 = dot(-lightVector, normal); - - vec4 tmp = mLightColor * tmp2; - gl_FrontColor = gl_BackColor = vec4(tmp.x, tmp.y, tmp.z, 0.0); - - gl_TexCoord[0] = gl_MultiTexCoord0; -} -- cgit v1.1