Caches effects and effect parameters
Exemple #1
0
 public c0000a8()
 {
     this.f000039 = new c0000ae(this);
     this.f000017 = enum0ab.f000113;
     this.f0000d3 = new EffectCache(this, true);
 }
Exemple #2
0
 public virtual void m000243(EffectCache p0)
 {
 }
Exemple #3
0
 internal virtual void m000243(EffectCache p0)
 {
 }
Exemple #4
0
 internal override void m000243(EffectCache p0)
 {
     if (p0.m000008())
     {
         Vector3 vector = base.f000067;
         Vector3 vector2 = (Vector3) ((this.m000431().Max + this.m000431().Min) * 0.5f);
         vector -= vector2;
         List<EffectParameter> list = p0[EffectCache.EffectParameterNamesEnum.ShadowMapTexture];
         if (!this.f00000a && (list != null))
         {
             foreach (EffectParameter parameter in list)
             {
                 parameter.SetValue(this.m000064());
             }
         }
         list = p0[EffectCache.EffectParameterNamesEnum.ShadowCameraMatrix];
         if (list != null)
         {
             foreach (EffectParameter parameter in list)
             {
                 parameter.SetValue(base.m0001ab());
             }
         }
         list = p0[EffectCache.EffectParameterNamesEnum.ShadowLightDirection];
         if (list != null)
         {
             foreach (EffectParameter parameter in list)
             {
                 parameter.SetValue(base.f000066);
             }
         }
         list = p0[EffectCache.EffectParameterNamesEnum.ShadowLightDist];
         if (list != null)
         {
             foreach (EffectParameter parameter in list)
             {
                 parameter.SetValue(base.f000031);
             }
         }
         list = p0[EffectCache.EffectParameterNamesEnum.ShadowCameraAt];
         if (list != null)
         {
             foreach (EffectParameter parameter in list)
             {
                 parameter.SetValue(vector);
             }
         }
     }
 }