aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/plasma.vert.glsl
diff options
context:
space:
mode:
authorAnanya Sen2012-02-23 13:52:32 -0800
committerAnanya Sen2012-02-23 13:52:32 -0800
commitec3d07c2fea4e79c68606234074f43d694982e5b (patch)
treedc7c830c361d35c04a4d9b6d55c6c36d7a5d61cd /assets/shaders/plasma.vert.glsl
parent7283884c39df537694b21419a3ea9e3ca7793b4b (diff)
parent287a0bad5b774a380ec6c8b3ddf24dc03234e248 (diff)
downloadninja-ec3d07c2fea4e79c68606234074f43d694982e5b.tar.gz
Merge branch 'refs/heads/FileIO-jose' into FileIO
Conflicts: js/document/html-document.js js/helper-classes/3D/snap-manager.js Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'assets/shaders/plasma.vert.glsl')
-rw-r--r--assets/shaders/plasma.vert.glsl42
1 files changed, 42 insertions, 0 deletions
diff --git a/assets/shaders/plasma.vert.glsl b/assets/shaders/plasma.vert.glsl
new file mode 100644
index 00000000..f817c143
--- /dev/null
+++ b/assets/shaders/plasma.vert.glsl
@@ -0,0 +1,42 @@
1//
2// Vertex shader for procedural bricks
3//
4// Authors: Dave Baldwin, Steve Koren, Randi Rost
5// based on a shader by Darwyn Peachey
6//
7// Copyright (c) 2002-2006 3Dlabs Inc. Ltd.
8//
9// See 3Dlabs-License.txt for license information
10//
11
12//uniform vec3 LightPosition;
13
14#ifdef GL_ES
15precision highp float;
16#endif
17
18
19// attributes
20attribute vec3 vert;
21attribute vec3 normal;
22attribute vec2 texcoord;
23
24uniform mat4 u_shadowLightWorld;
25uniform mat4 u_shadowBiasMatrix;
26uniform mat4 u_vShadowLight;
27uniform vec3 u_lightPos;
28
29// matrix uniforms
30uniform mat4 u_mvMatrix;
31uniform vec3 u_eye;
32uniform mat4 u_normalMatrix;
33uniform mat4 u_projMatrix;
34uniform mat4 u_worldMatrix;
35
36varying vec2 v_uv;
37
38void main(void)
39{
40 gl_Position = u_projMatrix * u_mvMatrix * vec4(vert,1.0) ;
41 v_uv = texcoord;
42} \ No newline at end of file