Skip to content

Commit

Permalink
Fix shader build error when using Terra w/out a shadow node (#239)
Browse files Browse the repository at this point in the history
Fixes #239
  • Loading branch information
darksylinc committed Jan 15, 2022
1 parent c89369a commit e40bc53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
outVs.terrainShadow = mix( terraShadowData.x, 1.0, clamp( terraHeightWeight, 0.0, 1.0 ) );
@end

@property( hlms_lights_directional )
@property( hlms_lights_directional && hlms_num_shadow_map_lights )
@piece( custom_ps_preLights )fShadow *= inPs.terrainShadow;@end
@else
@piece( custom_ps_preLights )float fShadow = inPs.terrainShadow;@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
outVs.terrainShadow = lerp( terraShadowData.x, 1.0, saturate( terraHeightWeight ) );
@end

@property( hlms_lights_directional )
@property( hlms_lights_directional && hlms_num_shadow_map_lights )
@piece( custom_ps_preLights )fShadow *= inPs.terrainShadow;@end
@else
@piece( custom_ps_preLights )float fShadow = inPs.terrainShadow;@end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
outVs.terrainShadow = lerp( terraShadowData.x, 1.0, saturate( terraHeightWeight ) );
@end

@property( hlms_lights_directional )
@property( hlms_lights_directional && hlms_num_shadow_map_lights )
@piece( custom_ps_preLights )fShadow *= inPs.terrainShadow;@end
@else
@piece( custom_ps_preLights )float fShadow = inPs.terrainShadow;@end
Expand Down

0 comments on commit e40bc53

Please sign in to comment.