Skip to content

Commit 7832414

Browse files
authored
Bug: PBRLightingUtils.glsllib - Typo in GlossinessMap
The uniform is declared as: uniform sampler2D m_GlossinessMap; But we have: texture2D(m_GlossinesMap, newTexCoord) This is a typo: m_GlossinesMap → should be m_GlossinessMap. This will cause a compile error if GLOSSINESSMAP is enabled.
1 parent ca61194 commit 7832414

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jme3-core/src/main/resources/Common/ShaderLib/module/pbrlighting/PBRLightingUtils.glsllib

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
vec4 specularColor = vec4(1.0);
396396
#endif
397397
#ifdef GLOSSINESSMAP
398-
glossiness *= texture2D(m_GlossinesMap, newTexCoord).r;
398+
glossiness *= texture2D(m_GlossinessMap, newTexCoord).r;
399399
#endif
400400
#endif
401401
specularColor *= m_Specular;
@@ -711,3 +711,4 @@
711711
}
712712

713713
#endif
714+

0 commit comments

Comments
 (0)