Exemplo n.º 1
0
        /// <summary>
        /// Sets the source FBX texture to get the parameters from
        /// </summary>
        /// <remarks>You can override individual parameters using the "SetSamplerParam()" function,
        ///  if a parameter exists in the parameters table, it will be used instead
        ///  of the one that would be generated from the texture
        /// </remarks>
        /// <param name="_Texture"></param>
        public void             SetSourceFBXTexture(FBXImporter.Texture _Texture)
        {
            m_SourceTexture = _Texture;

//          // Build default sampler params
//          SetSamplerParam( "o3d.addressModeU", Helpers.FormatParamObject( ConvertWrapMode( _Texture.WrapModeU ) ) );
//          SetSamplerParam( "o3d.addressModeV", Helpers.FormatParamObject( ConvertWrapMode( _Texture.WrapModeV ) ) );
//          SetSamplerParam( "o3d.borderColor", Helpers.FormatParamObject( new Vector4D( 0, 0, 0, 0 ) ) );
//          SetSamplerParam( "o3d.magFilter", Helpers.FormatParamObject( (int) FILTER_TYPE.LINEAR ) );
//          SetSamplerParam( "o3d.minFilter", Helpers.FormatParamObject( (int) FILTER_TYPE.LINEAR ) );
//          SetSamplerParam( "o3d.mipFilter", Helpers.FormatParamObject( (int) FILTER_TYPE.LINEAR ) );
//          SetSamplerParam( "o3d.maxAnisotropy", Helpers.FormatParamObject( 1 ) );
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sets the source FBX texture to get the parameters from
        /// </summary>
        /// <remarks>You can override individual parameters using the "SetSamplerParam()" function,
        ///  if a parameter exists in the parameters table, it will be used instead
        ///  of the one that would be generated from the texture
        /// </remarks>
        /// <param name="_Texture"></param>
        public void SetSourceFBXTexture( FBXImporter.Texture _Texture )
        {
            m_SourceTexture = _Texture;

            // 			// Build default sampler params
            // 			SetSamplerParam( "o3d.addressModeU", Helpers.FormatParamObject( ConvertWrapMode( _Texture.WrapModeU ) ) );
            // 			SetSamplerParam( "o3d.addressModeV", Helpers.FormatParamObject( ConvertWrapMode( _Texture.WrapModeV ) ) );
            // 			SetSamplerParam( "o3d.borderColor", Helpers.FormatParamObject( new Vector4D( 0, 0, 0, 0 ) ) );
            // 			SetSamplerParam( "o3d.magFilter", Helpers.FormatParamObject( (int) FILTER_TYPE.LINEAR ) );
            // 			SetSamplerParam( "o3d.minFilter", Helpers.FormatParamObject( (int) FILTER_TYPE.LINEAR ) );
            // 			SetSamplerParam( "o3d.mipFilter", Helpers.FormatParamObject( (int) FILTER_TYPE.LINEAR ) );
            // 			SetSamplerParam( "o3d.maxAnisotropy", Helpers.FormatParamObject( 1 ) );
        }