예제 #1
0
 // Token: 0x060023C8 RID: 9160 RVA: 0x000AF880 File Offset: 0x000ADA80
 private void LoadShader()
 {
     this.shader = Resources.Load <Shader>(string.Format("Shaders/AdvancedNightVision{0}", this.shaderPasses.ToString()));
     AdvancedNightVisionHelper.IsSupported(this.shader, this);
     this.material = new Material(this.shader);
     this.ReleaseAllTemporaryRenderTextures();
 }
예제 #2
0
 // Token: 0x060023C5 RID: 9157 RVA: 0x000AF311 File Offset: 0x000AD511
 private void OnEnable()
 {
     if (AdvancedNightVisionHelper.CheckHardwareRequirements(true, false, false, this) && AdvancedNightVisionHelper.IsSupported(this.shader, this))
     {
         this.material = new Material(this.shader);
     }
 }