GltfTexture
GLTFTexture represents a texture in a glTF file.
GLTFTexture represents a texture in a glTF file.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
GltfTextureConstructor
public GltfTexture();Properties2
SamplerProperty
public int Sampler { get; set; }ID of the texture sampler to use when sampling the image. If -1, then the default texture sampler is used (linear filtering, and repeat wrapping in both axes).
SrcImageProperty
public int SrcImage { get; set; }The index of the image associated with this texture, see GltfState.GetImages. If -1, then this texture does not have an image assigned.
Methods4
GetSamplerint
public int GetSampler();Returns
intGetSrcImageint
public int GetSrcImage();Returns
intSetSamplervoid
public void SetSampler(int sampler);| Name | Type | Default |
|---|---|---|
sampler | int | — |
SetSrcImagevoid
public void SetSrcImage(int srcImage);| Name | Type | Default |
|---|---|---|
srcImage | int | — |
Reckfell Engine documentationBack to top ↑