示例#1
0
            public bool HasTextures(PBRWorkflow wf)
            {
                if (wf == PBRWorkflow.Specular)
                {
                    return(
#if SUBSTANCE_PLUGIN_ENABLED
                        substance != null ||
#endif
#if __MICROSPLAT_DECAL__
                        splat != null ||
#endif
                        diffuse != null ||
                        height != null ||
                        normal != null ||
                        smoothness != null ||
                        specular != null ||
                        ao != null);
                }
                else
                {
                    return(
#if SUBSTANCE_PLUGIN_ENABLED
                        substance != null ||
#endif
#if __MICROSPLAT_DECAL__
                        splat != null ||
#endif
                        diffuse != null ||
                        height != null ||
                        normal != null ||
                        smoothness != null ||
                        metal != null ||
                        ao != null);
                }
            }
            public bool HasTextures(PBRWorkflow wf)
            {
                if (wf == PBRWorkflow.Specular)
                {
                    return(
#if !UNITY_2017_3_OR_NEWER || SUBSTANCE_PLUGIN_ENABLED
                        substance != null ||
#endif
                        diffuse != null ||
                        height != null ||
                        normal != null ||
                        smoothness != null ||
                        specular != null ||
                        ao != null);
                }
                else
                {
                    return(
#if !UNITY_2017_3_OR_NEWER || SUBSTANCE_PLUGIN_ENABLED
                        substance != null ||
#endif
                        diffuse != null ||
                        height != null ||
                        normal != null ||
                        smoothness != null ||
                        metal != null ||
                        ao != null);
                }
            }