Enum dae_parser::SurfaceChannels
source · pub enum SurfaceChannels {
RGB,
RGBA,
L,
LA,
D,
XYZ,
XYZW,
}
Expand description
The per-texel layout of the format. The length of the enumeration string indicates how many channels there are and each letter represents the name of a channel. There are typically 1 to 4 channels.
Variants§
RGB
Red/Green/Blue color map.
RGBA
Red/Green/Blue/Alpha map, often used for color and transparency or other things packed into channel A, such as specular power.
L
Luminance map, often used for light mapping.
LA
Luminance/Alpha map, often used for light mapping.
D
Depth map, often used for displacement, parallax, relief, or shadow mapping.
XYZ
Typically used for normal maps or three-component displacement maps.
XYZW
Typically used for normal maps, where W
is the depth for relief or parallax mapping.
Implementations§
Trait Implementations§
source§impl Clone for SurfaceChannels
impl Clone for SurfaceChannels
source§fn clone(&self) -> SurfaceChannels
fn clone(&self) -> SurfaceChannels
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SurfaceChannels
impl Debug for SurfaceChannels
source§impl Display for SurfaceChannels
impl Display for SurfaceChannels
source§impl FromStr for SurfaceChannels
impl FromStr for SurfaceChannels
source§impl PartialEq<SurfaceChannels> for SurfaceChannels
impl PartialEq<SurfaceChannels> for SurfaceChannels
source§fn eq(&self, other: &SurfaceChannels) -> bool
fn eq(&self, other: &SurfaceChannels) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.