Пример #1
0
 public static void LoadIfNeeded()
 {
     if (!Noise3D.isSupported)
     {
         return;
     }
     if (Noise3D.ms_NoiseTexture == null)
     {
         Noise3D.ms_NoiseTexture = Noise3D.LoadTexture3D(Config.Instance.noise3DData, Config.Instance.noise3DSize);
         if (Noise3D.ms_NoiseTexture)
         {
             Noise3D.ms_NoiseTexture.hideFlags = HideFlags.HideAndDontSave;
         }
     }
     Shader.SetGlobalTexture("_VLB_NoiseTex3D", Noise3D.ms_NoiseTexture);
     Shader.SetGlobalVector("_VLB_NoiseGlobal", Config.Instance.globalNoiseParam);
 }
Пример #2
0
 public static void LoadIfNeeded()
 {
     if (!Noise3D.isSupported)
     {
         return;
     }
     if (Object.op_Equality((Object)Noise3D.ms_NoiseTexture, (Object)null))
     {
         Noise3D.ms_NoiseTexture = Noise3D.LoadTexture3D(Config.Instance.noise3DData, Config.Instance.noise3DSize);
         if (Object.op_Implicit((Object)Noise3D.ms_NoiseTexture))
         {
             ((Object)Noise3D.ms_NoiseTexture).set_hideFlags((HideFlags)61);
         }
     }
     Shader.SetGlobalTexture("_VLB_NoiseTex3D", (Texture)Noise3D.ms_NoiseTexture);
     Shader.SetGlobalVector("_VLB_NoiseGlobal", Config.Instance.globalNoiseParam);
 }