public void CopyWithoutKeywords(object source, Material dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         CopyWithoutKeywords(source, dest);
     }
 }
 public virtual void Copy(Material source, Material dest, ICollection <string> enabledKeywords, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         Copy(source, dest, enabledKeywords);
     }
 }
 public virtual void SetGlobalValues(object source, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         SetGlobalValues(source);
     }
 }
 public virtual object Copy(Material source, object dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         return(Copy(source, dest));
     }
     return(dest);
 }
 public virtual object GetGlobalValues(object dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         return(GetGlobalValues(dest));
     }
     return(dest);
 }
 public int GetEnabledKeywords(Material source, ICollection <string> keywords, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         return(GetEnabledKeywords(source, keywords));
     }
     return(0);
 }
 public int GetEnabledKeywords(Material source, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         return(GetEnabledKeywords(source));
     }
     return(0);
 }
 public int GetEnabledKeywords(ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         return(GetEnabledKeywords());
     }
     return(0);
 }
 public virtual object Lerp(object v0, object v1, object dest, float t, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         return(Lerp(v0, v1, dest, t));
     }
     return(dest);
 }
 public object CopyWithoutKeywords(Material source, object dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         CopyWithoutKeywords(source, dest);
     }
     return(dest);
 }
Example #11
0
 public void Copy(Material source, Material dest, ICollection <string> enabledKeywords, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         foreach (var child in Children)
         {
             child.Copy(source, dest, enabledKeywords, filter);
         }
     }
 }
Example #12
0
 public void CopyWithoutKeywords(Material source, Material dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         foreach (var child in Children)
         {
             child.CopyWithoutKeywords(source, dest, filter);
         }
     }
 }
Example #13
0
 public void ForEach(ShaderFieldAction action)
 {
     if (action.Invoke(this))
     {
         foreach (var child in Children)
         {
             child.ForEach(action);
         }
     }
 }
Example #14
0
 public void Copy(object source, Material dest, ICollection <string> enabledKeywords, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         var sourceValue = ReflectiveField.GetValue(source);
         foreach (var child in Children)
         {
             child.Copy(sourceValue, dest, enabledKeywords, filter);
         }
     }
 }
Example #15
0
 public void SetGlobalValues(object source, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         var value = ReflectiveField.GetValue(source);
         foreach (var child in Children)
         {
             child.SetGlobalValues(value, filter);
         }
     }
 }
Example #16
0
 public void CopyWithoutKeywords(object source, Material dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         var sourceValue = ReflectiveField.GetValue(source);
         foreach (var child in Children)
         {
             child.CopyWithoutKeywords(sourceValue, dest, filter);
         }
     }
 }
Example #17
0
 public object GetGlobalValues(object dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         var value = ReflectiveField.GetValue(dest);
         foreach (var child in Children)
         {
             child.GetGlobalValues(value, filter);
         }
     }
     return(dest);
 }
Example #18
0
 public object CopyWithoutKeywords(Material source, object dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         var destValue = ReflectiveField.GetValue(dest);
         foreach (var child in Children)
         {
             child.CopyWithoutKeywords(source, destValue, filter);
         }
     }
     return(dest);
 }
Example #19
0
        public int GetEnabledKeywords(Material source, ICollection <string> keywords, ShaderFieldAction filter)
        {
            int mask = 0;

            if (filter.Invoke(this))
            {
                foreach (var child in Children)
                {
                    mask |= child.GetEnabledKeywords(source, filter);
                }
            }
            return(mask);
        }
Example #20
0
        public int GetEnabledKeywords(object source, ShaderFieldAction filter)
        {
            int mask = 0;

            if (filter.Invoke(this))
            {
                foreach (var child in Children)
                {
                    mask |= child.GetEnabledKeywords(source, filter);
                }
            }
            return(mask);
        }
Example #21
0
 public object Copy(object source, object dest, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         var sourceValue = ReflectiveField.GetValue(source);
         var destValue   = ReflectiveField.GetValue(dest);
         foreach (var child in Children)
         {
             child.Copy(sourceValue, destValue, filter);
         }
     }
     return(dest);
 }
Example #22
0
 public object Lerp(object v0, object v1, object dest, float t, ShaderFieldAction filter)
 {
     if (filter.Invoke(this))
     {
         var value0    = ReflectiveField.GetValue(v0);
         var value1    = ReflectiveField.GetValue(v1);
         var destValue = ReflectiveField.GetValue(dest);
         foreach (var child in Children)
         {
             child.Lerp(value0, value1, destValue, t, filter);
         }
     }
     return(dest);
 }
 public virtual void ForEach(ShaderFieldAction action)
 {
     action.Invoke(this);
 }