Example #1
0
 // Token: 0x060040BD RID: 16573 RVA: 0x00147A38 File Offset: 0x00145E38
 public override void Prepare(Material uberMaterial)
 {
     VignetteModel.Settings settings = base.model.settings;
     uberMaterial.SetColor(VignetteComponent.Uniforms._Vignette_Color, settings.color);
     if (settings.mode == VignetteModel.Mode.Classic)
     {
         uberMaterial.SetVector(VignetteComponent.Uniforms._Vignette_Center, settings.center);
         uberMaterial.EnableKeyword("VIGNETTE_CLASSIC");
         float z = (1f - settings.roundness) * 6f + settings.roundness;
         uberMaterial.SetVector(VignetteComponent.Uniforms._Vignette_Settings, new Vector4(settings.intensity * 3f, settings.smoothness * 5f, z, (!settings.rounded) ? 0f : 1f));
     }
     else if (settings.mode == VignetteModel.Mode.Masked && settings.mask != null && settings.opacity > 0f)
     {
         uberMaterial.EnableKeyword("VIGNETTE_MASKED");
         uberMaterial.SetTexture(VignetteComponent.Uniforms._Vignette_Mask, settings.mask);
         uberMaterial.SetFloat(VignetteComponent.Uniforms._Vignette_Opacity, settings.opacity);
     }
 }
Example #2
0
 // Token: 0x0600697D RID: 27005 RVA: 0x00027D23 File Offset: 0x00025F23
 public void IFCNCMMGCFN(VignetteModel.Settings BGBMIEJJQKC)
 {
     this.m_Settings = BGBMIEJJQKC;
 }
Example #3
0
 // Token: 0x06006987 RID: 27015 RVA: 0x00027D23 File Offset: 0x00025F23
 public void GJOHNHLCMID(VignetteModel.Settings BGBMIEJJQKC)
 {
     this.m_Settings = BGBMIEJJQKC;
 }
Example #4
0
 // Token: 0x06006985 RID: 27013 RVA: 0x00027D23 File Offset: 0x00025F23
 public void FBHPICJCHLD(VignetteModel.Settings BGBMIEJJQKC)
 {
     this.m_Settings = BGBMIEJJQKC;
 }
Example #5
0
 // Token: 0x06006980 RID: 27008 RVA: 0x00027D23 File Offset: 0x00025F23
 public void CGGJFJNBDJC(VignetteModel.Settings BGBMIEJJQKC)
 {
     this.m_Settings = BGBMIEJJQKC;
 }
Example #6
0
 // Token: 0x0600697F RID: 27007 RVA: 0x00027D23 File Offset: 0x00025F23
 public void FGIGNOHHBHB(VignetteModel.Settings BGBMIEJJQKC)
 {
     this.m_Settings = BGBMIEJJQKC;
 }