Skip to content

Commit 521be40

Browse files
authored
Update PBRLightingUtils.glsllib
1 parent 570249a commit 521be40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
#endif
121121

122122
#if defined(ENABLE_PBRLightingUtils_computeDirectLight) || defined(ENABLE_PBRLightingUtils_computeDirectLightContribution)
123+
123124
// Specular-AA
124125
#ifdef SPECULAR_AA_SCREEN_SPACE_VARIANCE
125126
uniform float m_SpecularAASigma;
@@ -137,7 +138,7 @@
137138
#endif
138139
#ifdef STATIC_SUN_EXPOSURE
139140
uniform float m_StaticSunIntensity;
140-
#endif
141+
#endif
141142

142143
void PBRLightingUtils_readSunLightExposureParams(inout PBRSurface surface){
143144

@@ -146,7 +147,7 @@
146147
surface.exposure *= texture2D(m_SunLightExposureMap, newTexCoord;
147148
#endif
148149
#ifdef STATIC_SUN_EXPOSURE
149-
surface.exposure *= m_StaticSunExposure; //single float value to indicate percentage of sunlight hitting the whole model equally (only suitable for small models or models with equal sunlight exposure accross the entire model
150+
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
150151
#endif
151152
#ifdef USE_VERTEX_COLORS_AS_SUN_EXPOSURE
152153
surface.exposure *= vertColors.r; // use red channel of vertexColors for non-uniform sunlighting accross a single model

0 commit comments

Comments
 (0)