Skip to content

Commit ca61194

Browse files
committed
fix bug in sun exposure sampling
1 parent ab19180 commit ca61194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144

145145
surface.exposure = 1.0; //default value
146146
#ifdef EXPOSUREMAP
147-
surface.exposure *= texture2D(m_SunLightExposureMap, newTexCoord;
147+
surface.exposure *= texture2D(m_SunLightExposureMap, newTexCoord).r;
148148
#endif
149149
#ifdef STATIC_SUN_EXPOSURE
150150
surface.exposure *= m_StaticSunIntensity; //single float value to indicate percentage of sunlight hitting the model (only suitable for small models or models with equal sunlight exposure accross the entire model

0 commit comments

Comments
 (0)