Skip to content

Commit

Permalink
Shader styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Feb 27, 2020
1 parent dc3fe13 commit e47bac2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/jsm/csm/Shader.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ IncidentLight directLight;
float dist = min( linearDepth - csmx, csmy - linearDepth );
float ratio = clamp( dist / margin, 0.0, 1.0 );
if(i < NUM_DIR_LIGHT_SHADOWS) {
if( i < NUM_DIR_LIGHT_SHADOWS ) {
vec3 prevColor = directLight.color;
directionalLightShadow = directionalLightShadows[ i ];
directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
Expand Down

0 comments on commit e47bac2

Please sign in to comment.