BumpMapTextureNeedsFixingInternal() private method

private BumpMapTextureNeedsFixingInternal ( Material material, string propName, bool flaggedAsNormal ) : bool
material UnityEngine.Material
propName string
flaggedAsNormal bool
return bool
Example #1
0
        internal static bool BumpMapTextureNeedsFixing(MaterialProperty prop)
        {
            if (prop.type != MaterialProperty.PropType.Texture)
            {
                return(false);
            }
            bool flaggedAsNormal = (prop.flags & MaterialProperty.PropFlags.Normal) != MaterialProperty.PropFlags.None;

            UnityEngine.Object[] targets = prop.targets;
            for (int i = 0; i < targets.Length; i++)
            {
                Material material = (Material)targets[i];
                if (InternalEditorUtility.BumpMapTextureNeedsFixingInternal(material, prop.name, flaggedAsNormal))
                {
                    return(true);
                }
            }
            return(false);
        }