Exemple #1
0
		protected override ShaderProperty InputPropertyFromOldInput()
		{
			var property = new Texture2DProperty {PropertyName = _inputName};
			if( _defaultTexture.Selected == "white" )
			{
				property._defaultTexture = DefaultTextureType.White;
			}
			if( _defaultTexture.Selected == "normal" )
			{
				property._defaultTexture = DefaultTextureType.Bump;
			}
			return property;
		}
Exemple #2
0
        protected override ShaderProperty InputPropertyFromOldInput()
        {
            var property = new Texture2DProperty();

            property.PropertyName = _inputName;
            if (_defaultTexture.Selected == "white")
            {
                property._defaultTexture = DefaultTextureType.White;
            }
            if (_defaultTexture.Selected == "normal")
            {
                property._defaultTexture = DefaultTextureType.Bump;
            }
            return(property);
        }