Click or drag to resize
Ab4d.SharpEngine logo

AssimpConverterCreateTexture Method

CreateGpuTexture method creates a GpuTexture from texture file name and sets that to the specified material.

Namespace: Ab4d.SharpEngine.Assimp
Assembly: Ab4d.SharpEngine.Assimp (in Ab4d.SharpEngine.Assimp.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
protected virtual void CreateTexture(
	string textureFileName,
	string? texturesFilePath,
	Func<string, Stream?>? resolveResourceFunc,
	Material material
)

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)
material  Material
Material that will get the read texture (Usually StandardMaterial)
See Also