Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be8d99 commit ef37028Copy full SHA for ef37028
qml3DWater/shaders/terrain.vert
@@ -29,8 +29,8 @@ void main()
29
{
30
// pass through
31
texCoord = vertexTexCoord;
32
- vec3 worldNormal = normalize(modelNormalMatrix * vertexNormal);
33
- vec3 worldPosition = vec3(modelMatrix * vec4(vertexPosition, 1.0));
+ worldNormal = normalize(modelNormalMatrix * vertexNormal);
+ worldPosition = vec3(modelMatrix * vec4(vertexPosition, 1.0));
34
35
// calculate Phong on the vertex shader
36
worldView = normalize(eyePosition - worldPosition);
0 commit comments