@@ -19,7 +19,6 @@ static class Uniforms
1919 internal static readonly int _FullResolutionFiltering = Shader . PropertyToID ( "_FullResolutionFiltering" ) ;
2020 internal static readonly int _HalfResolution = Shader . PropertyToID ( "_HalfResolution" ) ;
2121 internal static readonly int _HighlightSuppression = Shader . PropertyToID ( "_HighlightSuppression" ) ;
22-
2322 internal static readonly int _PixelsPerMeterAtOneMeter = Shader . PropertyToID ( "_PixelsPerMeterAtOneMeter" ) ;
2423 internal static readonly int _ScreenEdgeFading = Shader . PropertyToID ( "_ScreenEdgeFading" ) ;
2524 internal static readonly int _ReflectionBlur = Shader . PropertyToID ( "_ReflectionBlur" ) ;
@@ -29,27 +28,18 @@ static class Uniforms
2928 internal static readonly int _SSRMultiplier = Shader . PropertyToID ( "_SSRMultiplier" ) ;
3029 internal static readonly int _FresnelFade = Shader . PropertyToID ( "_FresnelFade" ) ;
3130 internal static readonly int _FresnelFadePower = Shader . PropertyToID ( "_FresnelFadePower" ) ;
32-
3331 internal static readonly int _ReflectionBufferSize = Shader . PropertyToID ( "_ReflectionBufferSize" ) ;
3432 internal static readonly int _ScreenSize = Shader . PropertyToID ( "_ScreenSize" ) ;
3533 internal static readonly int _InvScreenSize = Shader . PropertyToID ( "_InvScreenSize" ) ;
3634 internal static readonly int _ProjInfo = Shader . PropertyToID ( "_ProjInfo" ) ;
3735 internal static readonly int _CameraClipInfo = Shader . PropertyToID ( "_CameraClipInfo" ) ;
38-
3936 internal static readonly int _ProjectToPixelMatrix = Shader . PropertyToID ( "_ProjectToPixelMatrix" ) ;
4037 internal static readonly int _WorldToCameraMatrix = Shader . PropertyToID ( "_WorldToCameraMatrix" ) ;
4138 internal static readonly int _CameraToWorldMatrix = Shader . PropertyToID ( "_CameraToWorldMatrix" ) ;
42-
43- internal static readonly int _Axis = Shader . PropertyToID ( "_CameraToWorldMatrix" ) ;
39+ internal static readonly int _Axis = Shader . PropertyToID ( "_Axis" ) ;
4440 internal static readonly int _CurrentMipLevel = Shader . PropertyToID ( "_CurrentMipLevel" ) ;
45-
4641 internal static readonly int _NormalAndRoughnessTexture = Shader . PropertyToID ( "_NormalAndRoughnessTexture" ) ;
4742 internal static readonly int _HitPointTexture = Shader . PropertyToID ( "_HitPointTexture" ) ;
48- internal static readonly int _ReflectionTexture0 = Shader . PropertyToID ( "_ReflectionTexture0" ) ;
49- internal static readonly int _ReflectionTexture1 = Shader . PropertyToID ( "_ReflectionTexture1" ) ;
50- internal static readonly int _ReflectionTexture2 = Shader . PropertyToID ( "_ReflectionTexture2" ) ;
51- internal static readonly int _ReflectionTexture3 = Shader . PropertyToID ( "_ReflectionTexture3" ) ;
52- internal static readonly int _ReflectionTexture4 = Shader . PropertyToID ( "_ReflectionTexture4" ) ;
5343 internal static readonly int _BlurTexture = Shader . PropertyToID ( "_BlurTexture" ) ;
5444 internal static readonly int _FilteredReflections = Shader . PropertyToID ( "_FilteredReflections" ) ;
5545 internal static readonly int _FinalReflectionTexture = Shader . PropertyToID ( "_FinalReflectionTexture" ) ;
@@ -94,11 +84,11 @@ public override bool active
9484
9585 public override void OnEnable ( )
9686 {
97- m_ReflectionTextures [ 0 ] = Uniforms . _ReflectionTexture0 ;
98- m_ReflectionTextures [ 1 ] = Uniforms . _ReflectionTexture1 ;
99- m_ReflectionTextures [ 2 ] = Uniforms . _ReflectionTexture2 ;
100- m_ReflectionTextures [ 3 ] = Uniforms . _ReflectionTexture3 ;
101- m_ReflectionTextures [ 4 ] = Uniforms . _ReflectionTexture4 ;
87+ m_ReflectionTextures [ 0 ] = Shader . PropertyToID ( " _ReflectionTexture0" ) ;
88+ m_ReflectionTextures [ 1 ] = Shader . PropertyToID ( " _ReflectionTexture1" ) ;
89+ m_ReflectionTextures [ 2 ] = Shader . PropertyToID ( " _ReflectionTexture2" ) ;
90+ m_ReflectionTextures [ 3 ] = Shader . PropertyToID ( " _ReflectionTexture3" ) ;
91+ m_ReflectionTextures [ 4 ] = Shader . PropertyToID ( " _ReflectionTexture4" ) ;
10292 }
10393
10494 public override string GetName ( )
0 commit comments