public override void Set(string propertyName, Texture value) { material.SetTexture(propertyName, (UnityTexture)value); }
///////////////// // System // ///////////////// /// <summary> /// This function should be called after changing the Albedo Map or AlphaCutoff Properties. /// It makes sure that baked system shadows work correctly with alpha clipping. /// </summary> /// <param name="material"></param> public static void UpdateSystemProperties(UnityEngine.Material material) { material.SetTexture(Uniforms.mainTex.id, Properties.albedoMap.GetValue(material)); material.SetFloat(Uniforms.cutoff.id, Properties.alphaCutoff.GetValue(material)); }