Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/assets/shaders/GLSL/grass.glsl

Diff revisions: vs.
  @@ -34,8 +34,7 @@
34 34 _normalMV = normalize(dvd_NormalMatrix * dvd_Normal);
35 35
36 36 computeFoliageMovementGrass(dvd_Normal, _normalMV, dvd_Vertex);
37 - vec4 vertexM = dvd_ModelMatrix * dvd_Vertex;
38 - _vertexMV = dvd_ViewMatrix * vertexM; //< ModelView Vertex
37 + _vertexMV = dvd_ViewMatrix * _vertexM; //< ModelView Vertex
39 38
40 39 computeLightVectorsPhong();
41 40 vec3 vLightPosMVTemp = _lightDirection[0];
  @@ -49,7 +48,7 @@
49 48 if(dvd_enableShadowMapping) {
50 49 // position multiplied by the light matrix.
51 50 //The vertex's position from the light's perspective
52 - _shadowCoord[0] = dvd_lightProjectionMatrices[0] * vertexM;
51 + _shadowCoord[0] = dvd_lightProjectionMatrices[0] * _vertexM;
53 52 }
54 53 }
55 54