diff --git a/ogre2/src/media/Hlms/Terra/GLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl b/ogre2/src/media/Hlms/Terra/GLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl index 9162c3617..4f5449b1c 100644 --- a/ogre2/src/media/Hlms/Terra/GLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl +++ b/ogre2/src/media/Hlms/Terra/GLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl @@ -34,7 +34,7 @@ outVs.terrainShadow = mix( terraShadowData.x, 1.0, clamp( terraHeightWeight, 0.0, 1.0 ) ); @end -@property( hlms_num_shadow_map_lights ) +@property( hlms_lights_directional ) @piece( custom_ps_preLights )fShadow *= inPs.terrainShadow;@end @else @piece( custom_ps_preLights )float fShadow = inPs.terrainShadow;@end diff --git a/ogre2/src/media/Hlms/Terra/GLSLES/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl b/ogre2/src/media/Hlms/Terra/GLSLES/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl index f0436a884..0a13d01d6 100644 --- a/ogre2/src/media/Hlms/Terra/GLSLES/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl +++ b/ogre2/src/media/Hlms/Terra/GLSLES/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.glsl @@ -28,7 +28,7 @@ outVs.terrainShadow = mix( terraShadowData.x, 1.0, clamp( terraHeightWeight, 0.0, 1.0 ) ); @end -@property( hlms_num_shadow_map_lights ) +@property( hlms_lights_directional ) @piece( custom_ps_preLights )fShadow *= inPs.terrainShadow;@end @end @property( !hlms_num_shadow_map_lights ) @piece( custom_ps_preLights )float fShadow = inPs.terrainShadow;@end diff --git a/ogre2/src/media/Hlms/Terra/HLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.hlsl b/ogre2/src/media/Hlms/Terra/HLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.hlsl index 3e26c06e4..b267fa8a0 100644 --- a/ogre2/src/media/Hlms/Terra/HLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.hlsl +++ b/ogre2/src/media/Hlms/Terra/HLSL/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.hlsl @@ -36,7 +36,7 @@ outVs.terrainShadow = lerp( terraShadowData.x, 1.0, saturate( terraHeightWeight ) ); @end -@property( hlms_num_shadow_map_lights ) +@property( hlms_lights_directional ) @piece( custom_ps_preLights )fShadow *= inPs.terrainShadow;@end @else @piece( custom_ps_preLights )float fShadow = inPs.terrainShadow;@end diff --git a/ogre2/src/media/Hlms/Terra/Metal/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.metal b/ogre2/src/media/Hlms/Terra/Metal/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.metal index 28c99327d..09ff43e5f 100644 --- a/ogre2/src/media/Hlms/Terra/Metal/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.metal +++ b/ogre2/src/media/Hlms/Terra/Metal/PbsTerraShadows/PbsTerraShadows_piece_vs_piece_ps.metal @@ -36,7 +36,7 @@ outVs.terrainShadow = lerp( terraShadowData.x, 1.0, saturate( terraHeightWeight ) ); @end -@property( hlms_num_shadow_map_lights ) +@property( hlms_lights_directional ) @piece( custom_ps_preLights )fShadow *= inPs.terrainShadow;@end @else @piece( custom_ps_preLights )float fShadow = inPs.terrainShadow;@end