public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol /* ref string metaStr */)
        {
            if (m_defaultValue != null)
            {
                defaultCol.AddValue(PropertyName, m_defaultValue);
            }

            return(true);
        }
예제 #2
0
        public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol)
        {
            if (m_defaultTextureArray != null)
            {
                defaultCol.AddValue(PropertyName, m_defaultTextureArray);
            }

            return(true);
        }
예제 #3
0
 public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol)
 {
     if (m_proceduralMaterial != null)
     {
         Texture[] textures = m_proceduralMaterial.GetGeneratedTextures();
         for (int i = 0; i < textures.Length; i++)
         {
             defaultCol.AddValue(textures[i].name, textures[i]);
         }
     }
     return(true);
 }
예제 #4
0
 public override bool UpdateShaderDefaults(ref Shader shader, ref TextureDefaultsDataColector defaultCol /* ref string metaStr */)
 {
     if (m_defaultValue != null)
     {
         defaultCol.AddValue(m_propertyName, m_defaultValue);
         //string data2 = AssetDatabase.AssetPathToGUID( AssetDatabase.GetAssetPath( _defaultValue ) );
         //metaStr += ( "  - " + _propertyName + ": {fileID: " + _metafileId + ", guid: " + data2 + ", type: 3}\n" );
     }
     //else
     //{
     //	metaStr += ( "  - " + _propertyName + ": {instanceID: 0}\n" );
     //}
     return(true);
 }