Skip to content

Commit

Permalink
fix: fix to check define
Browse files Browse the repository at this point in the history
re-fix of 3cf43b9
  • Loading branch information
MtBlue81 committed Oct 3, 2023
1 parent 8088de1 commit 598a756
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/three-vrm-materials-mtoon/src/shaders/mtoon.frag
Original file line number Diff line number Diff line change
Expand Up @@ -774,14 +774,14 @@ void main() {

vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );

#if defined( USE_LIGHT_PROBES )
#if THREE_VRM_THREE_REVISION >= 157
#if THREE_VRM_THREE_REVISION >= 157
#if defined( USE_LIGHT_PROBES )
irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );
#elif THREE_VRM_THREE_REVISION >= 133
irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
#else
irradiance += getLightProbeIrradiance( lightProbe, geometry );
#endif
#elif THREE_VRM_THREE_REVISION >= 133
irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
#else
irradiance += getLightProbeIrradiance( lightProbe, geometry );
#endif

#if ( NUM_HEMI_LIGHTS > 0 )
Expand Down

0 comments on commit 598a756

Please sign in to comment.