Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef37028

Browse files
authored
qml3DWater: fixed bug in terrain.vert that prevented rendering of the scene
1 parent 1be8d99 commit ef37028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qml3DWater/shaders/terrain.vert

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ void main()
2929
{
3030
// pass through
3131
texCoord = vertexTexCoord;
32-
vec3 worldNormal = normalize(modelNormalMatrix * vertexNormal);
33-
vec3 worldPosition = vec3(modelMatrix * vec4(vertexPosition, 1.0));
32+
worldNormal = normalize(modelNormalMatrix * vertexNormal);
33+
worldPosition = vec3(modelMatrix * vec4(vertexPosition, 1.0));
3434

3535
// calculate Phong on the vertex shader
3636
worldView = normalize(eyePosition - worldPosition);

0 commit comments

Comments
 (0)