GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::Model::Material::TextureInfo Struct Reference

Information about how a material uses a texture. More...

#include <GREM/resource/Model.hpp>

Public Attributes

TextureIndex textureIndex
 Index of the texture in the model's texture array, or an out-of-range index for the default texture.
vec2 textureOffset
 Texture coordinate offset to apply when sampling the texture.
mat2 textureBasis
 Texture coordinate basis to apply when sampling the texture.

Detailed Description

Information about how a material uses a texture.

Member Data Documentation

◆ textureIndex

TextureIndex grem::resource::Model::Material::TextureInfo::textureIndex

Index of the texture in the model's texture array, or an out-of-range index for the default texture.

◆ textureOffset

vec2 grem::resource::Model::Material::TextureInfo::textureOffset

Texture coordinate offset to apply when sampling the texture.

◆ textureBasis

mat2 grem::resource::Model::Material::TextureInfo::textureBasis

Texture coordinate basis to apply when sampling the texture.


The documentation for this struct was generated from the following file: