FBX.SceneLoader.Objects.LoaderTempTexture.SetSourceFBXTexture C# (CSharp) Méthode

SetSourceFBXTexture() public méthode

Sets the source FBX texture to get the parameters from
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
public SetSourceFBXTexture ( FBXImporter _Texture ) : void
_Texture FBXImporter
Résultat void
        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 ) );
        }