summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/engine/shaders/vertexShaderTexture
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-05-30 06:37:31 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-05-30 10:11:57 +0300
commit0d3417870860efdffdeda0dd7a5d1f3e7203138b (patch)
treec311ab25d56ef09fb12016f08578d692f2546a22 /src/datavis3d/engine/shaders/vertexShaderTexture
parent2973f99565bf469a8fb3cb799d35e930aedc5f4f (diff)
Shaders renamed to use correct file name extensions
Now Qt Creator finds correct highlighters Change-Id: I9a2ab9596d29efaaa3ff0b202ef89bfbca38c627 Change-Id: I9a2ab9596d29efaaa3ff0b202ef89bfbca38c627 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavis3d/engine/shaders/vertexShaderTexture')
-rw-r--r--src/datavis3d/engine/shaders/vertexShaderTexture26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/datavis3d/engine/shaders/vertexShaderTexture b/src/datavis3d/engine/shaders/vertexShaderTexture
deleted file mode 100644
index 01f922e0..00000000
--- a/src/datavis3d/engine/shaders/vertexShaderTexture
+++ /dev/null
@@ -1,26 +0,0 @@
-uniform highp mat4 MVP;
-uniform highp mat4 V;
-uniform highp mat4 M;
-uniform highp mat4 itM;
-uniform highp vec3 lightPosition_wrld;
-
-attribute highp vec3 vertexPosition_mdl;
-attribute highp vec2 vertexUV;
-attribute highp vec3 vertexNormal_mdl;
-
-varying highp vec2 UV;
-varying highp vec3 position_wrld;
-varying highp vec3 normal_cmr;
-varying highp vec3 eyeDirection_cmr;
-varying highp vec3 lightDirection_cmr;
-
-void main() {
- gl_Position = MVP * vec4(vertexPosition_mdl, 1.0);
- position_wrld = (M * vec4(vertexPosition_mdl, 1.0)).xyz;
- vec3 vertexPosition_cmr = (V * M * vec4(vertexPosition_mdl, 1.0)).xyz;
- eyeDirection_cmr = vec3(0.0, 0.0, 0.0) - vertexPosition_cmr;
- vec3 lightPosition_cmr = (V * vec4(lightPosition_wrld, 1.0)).xyz;
- lightDirection_cmr = lightPosition_cmr + eyeDirection_cmr;
- normal_cmr = (V * itM * vec4(vertexNormal_mdl, 0.0)).xyz;
- UV = vertexUV;
-}