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 f6e646f commit fcaf17fCopy full SHA for fcaf17f
jme3-core/src/main/resources/Common/MatDefs/Light/PBRLighting.vert
@@ -76,7 +76,7 @@ void main(){
76
texCoord2 = inTexCoord2;
77
#endif
78
79
- wPosition = (g_WorldMatrix * vec4(inPosition, 1.0)).xyz;
+ wPosition = TransformWorld(modelSpacePos).xyz;
80
wNormal = TransformWorldNormal(modelSpaceNorm);
81
82
wTangent = vec4(TransformWorldNormal(modelSpaceTan),inTangent.w);
0 commit comments