Ejemplo n.º 1
0
		public override void DeserializeSpecialData( string key, string value ) {
			property.Deserialize( key, value );
			switch( key ) {
				case "tex":
					textureAsset = (Texture)SF_Tools.GUIDToAsset( value, typeof( Texture ) );
					OnAssignedTexture();
					break;
				case "ntxv":
					noTexValue = (NoTexValue)int.Parse( value );
					break;
				case "isnm":
					markedAsNormalMap = bool.Parse( value );
					break;
			}
		}
Ejemplo n.º 2
0
        public override void DeserializeSpecialData(string key, string value)
        {
            property.Deserialize(key, value);
            switch (key)
            {
            case "cube":
                cubemapAsset = (Cubemap)SF_Tools.GUIDToAsset(value, typeof(Cubemap));
                break;

            case "pvfc":
                previewFace = (CubemapFace)int.Parse(value);
                break;
            }
            if (cubemapAsset != null)
            {
                RenderToTexture();
            }
        }