aboutsummaryrefslogtreecommitdiffstats
path: root/src/GLSLShaderTest/dimple.vert
diff options
context:
space:
mode:
authorkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-02-01 01:33:24 +0000
committerkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-02-01 01:33:24 +0000
commit39283191507259cb4dccba3441cdf16025179829 (patch)
tree29ad229325ab151a056d06fbe4c6f1fcd7b292d7 /src/GLSLShaderTest/dimple.vert
parent3d596b24b72677fbf264a22f3c0ff44aa9bb2baf (diff)
Issue 206 : Example program cleanup
Item 4) Reorganized directory structure to make the examples a single project rather than a collection of independent apps. . All example programs moved under src/classes, and all are now in a subpackage of org.jdesktop.j3d.examples. . All resource files (geometry, images, audio) moved under src/resources . ant script now exists only at top level . Created netbeans project file for NetBeans IDE
Diffstat (limited to 'src/GLSLShaderTest/dimple.vert')
-rw-r--r--src/GLSLShaderTest/dimple.vert42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/GLSLShaderTest/dimple.vert b/src/GLSLShaderTest/dimple.vert
deleted file mode 100644
index e45796b..0000000
--- a/src/GLSLShaderTest/dimple.vert
+++ /dev/null
@@ -1,42 +0,0 @@
-
-//
-// dimple.vert: Vertex shader for bump mapping dimples (bumps)
-//
-// author: John Kessenich
-//
-// Copyright (c) 2002: 3Dlabs, Inc.
-//
-
-varying vec3 LightDir;
-varying vec3 EyeDir;
-varying vec3 Normal;
-
-uniform vec3 LightPosition;
-// uniform float Scale;
-// vec3 LightPosition = vec3(0.0, 0.0, 5.0);
-float Scale = 1.0;
-
-void main(void)
-{
- vec4 pos = gl_ModelViewMatrix * gl_Vertex;
- gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
- vec3 eyeDir = vec3(pos);
-// gl_TexCoord[0] = gl_MultiTexCoord0;
- gl_TexCoord[0] = gl_Vertex;
- gl_FrontColor = gl_Color;
-
- vec3 n = normalize(gl_NormalMatrix * gl_Normal);
- vec3 t = normalize(cross(vec3(1.141, 2.78, 3.14), n));
- vec3 b = cross(n, t);
-
- vec3 v;
- v.x = dot(LightPosition, t);
- v.y = dot(LightPosition, b);
- v.z = dot(LightPosition, n);
- LightDir = normalize(v);
-
- v.x = dot(eyeDir, t);
- v.y = dot(eyeDir, b);
- v.z = dot(eyeDir, n);
- EyeDir = normalize(v);
-}