#[repr(i32)]pub enum TextureKind {
Show 20 variants
Other = 0,
Diffuse = 1,
Normal = 2,
Specular = 3,
ORM = 4,
Albedo = 5,
Roughness = 6,
Metalness = 7,
AmbientOcclusion = 8,
Gloss = 9,
Emissive = 10,
AlphaMask = 11,
BinaryMask = 12,
TransparencyMask = 13,
BlendMask = 14,
Lightmap = 15,
EnvironmentPBR = 16,
EnvironmentLegacy = 17,
Multikind = 18,
Unused = 19,
}Expand description
Semantic role of a texture in a material.
Variants§
Other = 0
Unknown or application-specific usage.
Diffuse = 1
Diffuse / base colour (legacy).
Normal = 2
Tangent-space normal map.
Specular = 3
Specular intensity / colour.
ORM = 4
ORM packed texture (R=AO, G=Roughness, B=Metalness, A=Unused).
Albedo = 5
PBR base colour (albedo).
Roughness = 6
Roughness (single channel).
Metalness = 7
Metalness (single channel).
AmbientOcclusion = 8
Ambient occlusion (single channel).
Gloss = 9
Gloss / smoothness (single channel).
Emissive = 10
Emissive colour / intensity.
AlphaMask = 11
Opacity / alpha mask (single channel, linear).
BinaryMask = 12
Hard binary mask (0 or 1); alpha-coverage-preserving filter.
TransparencyMask = 13
Smooth transparency mask; alpha-coverage-preserving, continuous values.
BlendMask = 14
Blend weight mask; alpha-coverage-preserving with soft transitions.
Lightmap = 15
Lightmap or baked light contribution (HDR colour).
EnvironmentPBR = 16
Environment / reflection map (equirectangular, GGX prefiltered).
EnvironmentLegacy = 17
Environment map (equirectangular, spherical Kaiser-filtered).
Multikind = 18
Packed multi-channel texture where each channel carries a distinct semantic role. Use setChannelKind() / channelKind() to assign and query the per-channel kinds. generateMipmaps() will apply a kind-appropriate filter to every channel independently.
Unused = 19
Channel is not used and carries no semantic meaning. Only valid as a per-channel kind on a Multikind texture (set via setChannelKind()). generateMipmaps() applies a plain box filter to Unused channels.
Trait Implementations§
Source§impl Clone for TextureKind
impl Clone for TextureKind
Source§fn clone(&self) -> TextureKind
fn clone(&self) -> TextureKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more