Skip to content

Commit

Permalink
Fix abnormal normals in scenegraph-layer-vertex shader (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgios-uber committed May 29, 2019
1 parent ef0b34a commit 0e666f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _attribute vec4 POSITION;
// Utils
#if defined(HAS_NORMALS) && defined(MODULE_PBR)
vec3 getProjectedNormal() {
return project_normal(instanceModelMatrix * (sceneModelMatrix * NORMAL).xyz);
return project_normal(instanceModelMatrix * (sceneModelMatrix * vec4(NORMAL.xyz, 0.0)).xyz);
}
#endif
Expand Down

0 comments on commit 0e666f9

Please sign in to comment.