 |
ObjFileToSceneNodesConverterCreateTexture Method |
CreateGpuTexture method creates a GpuTexture from texture file name and sets that to the specified standardMaterial.
Namespace: Ab4d.SharpEngine.ObjFileAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntaxprotected virtual void CreateTexture(
string textureFileName,
string? texturesFilePath,
Func<string, Stream?>? resolveResourceFunc,
StandardMaterial standardMaterial
)
Parameters
- textureFileName String
- textureFileName as written in model file
- texturesFilePath String
- textures path as specified to the AssimpConverter (can be null)
- resolveResourceFunc FuncString, Stream
- callback function to resolve textureFileName to stream (can be null)
- standardMaterial StandardMaterial
- StandardMaterial that will get the read texture
See Also