#[repr(u32)]pub enum TextureType {
Show 27 variants
Diffuse = 1,
Specular = 2,
Ambient = 3,
Emissive = 4,
Height = 5,
Normals = 6,
Shininess = 7,
Opacity = 8,
Displacement = 9,
Lightmap = 10,
Reflection = 11,
BaseColor = 12,
NormalCamera = 13,
EmissionColor = 14,
Metalness = 15,
DiffuseRoughness = 16,
AmbientOcclusion = 17,
Unknown = 18,
Sheen = 19,
Clearcoat = 20,
Transmission = 21,
MayaBase = 22,
MayaSpecular = 23,
MayaSpecularColor = 24,
MayaSpecularRoughness = 25,
Anisotropy = 26,
GltfMetallicRoughness = 27,
}
Expand description
Types of textures that can be applied to materials
Variants§
Diffuse = 1
Diffuse texture (base color)
Specular = 2
Specular texture (reflectivity)
Ambient = 3
Ambient texture (ambient lighting)
Emissive = 4
Emissive texture (self-illumination)
Height = 5
Height texture (displacement mapping)
Normals = 6
Normal texture (surface detail)
Shininess = 7
Shininess texture (specular power)
Opacity = 8
Opacity texture (transparency)
Displacement = 9
Displacement texture (geometry displacement)
Lightmap = 10
Lightmap texture (pre-computed lighting)
Reflection = 11
Reflection texture (environment mapping)
BaseColor = 12
Base color texture (PBR albedo)
NormalCamera = 13
Normal camera texture (camera-space normals)
EmissionColor = 14
Emission color texture (PBR emission)
Metalness = 15
Metalness texture (PBR metallic)
DiffuseRoughness = 16
Diffuse roughness texture (PBR roughness)
AmbientOcclusion = 17
Ambient occlusion texture (shadowing)
Unknown = 18
Unknown texture type
Sheen = 19
Sheen layer (PBR)
Clearcoat = 20
Clearcoat layer (PBR)
Transmission = 21
Transmission layer (PBR)
MayaBase = 22
Maya base color (compat)
MayaSpecular = 23
Maya specular (compat)
MayaSpecularColor = 24
Maya specular color (compat)
MayaSpecularRoughness = 25
Maya specular roughness (compat)
Anisotropy = 26
Anisotropy (PBR)
GltfMetallicRoughness = 27
glTF metallic-roughness packed
Implementations§
Trait Implementations§
Source§impl Clone for TextureType
impl Clone for TextureType
Source§fn clone(&self) -> TextureType
fn clone(&self) -> TextureType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more