AssimpLibraryGetMaterialColor Method |
Retrieves a color value from the material property table.
Namespace: Internal.Assimp.UnmanagedAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic Vector4 GetMaterialColor(
ref AiMaterial mat,
string key,
TextureType texType,
uint texIndex
)
Parameters
- mat AiMaterial
- Material to retrieve the data from
- key String
- Ai mat key (base) name to search for
- texType TextureType
- Texture Type semantic, always zero for non-texture properties
- texIndex UInt32
- Texture index, always zero for non-texture properties
Return Value
Vector4The color if it exists. If not, the default Vector4 value is returned.
See Also