Enum rust_raylib::ffi::ShaderLocationIndex
source · #[repr(C)]pub enum ShaderLocationIndex {
Show 26 variants
VertexPosition,
VertexTexcoord01,
VertexTexcoord02,
VertexNormal,
VertexTangent,
VertexColor,
MatrixMvp,
MatrixView,
MatrixProjection,
MatrixModel,
MatrixNormal,
VectorView,
ColorDiffuse,
ColorSpecular,
ColorAmbient,
MapAlbedo,
MapMetalness,
MapNormal,
MapRoughness,
MapOcclusion,
MapEmission,
MapHeight,
MapCubemap,
MapIrradiance,
MapPrefilter,
MapBrdf,
}Expand description
Shader location index
Variants§
VertexPosition
Shader location: vertex attribute: position
VertexTexcoord01
Shader location: vertex attribute: texcoord01
VertexTexcoord02
Shader location: vertex attribute: texcoord02
VertexNormal
Shader location: vertex attribute: normal
VertexTangent
Shader location: vertex attribute: tangent
VertexColor
Shader location: vertex attribute: color
MatrixMvp
Shader location: matrix uniform: model-view-projection
MatrixView
Shader location: matrix uniform: view (camera transform)
MatrixProjection
Shader location: matrix uniform: projection
MatrixModel
Shader location: matrix uniform: model (transform)
MatrixNormal
Shader location: matrix uniform: normal
VectorView
Shader location: vector uniform: view
ColorDiffuse
Shader location: vector uniform: diffuse color
ColorSpecular
Shader location: vector uniform: specular color
ColorAmbient
Shader location: vector uniform: ambient color
MapAlbedo
Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)
MapMetalness
Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)
MapNormal
Shader location: sampler2d texture: normal
MapRoughness
Shader location: sampler2d texture: roughness
MapOcclusion
Shader location: sampler2d texture: occlusion
MapEmission
Shader location: sampler2d texture: emission
MapHeight
Shader location: sampler2d texture: height
MapCubemap
Shader location: samplerCube texture: cubemap
MapIrradiance
Shader location: samplerCube texture: irradiance
MapPrefilter
Shader location: samplerCube texture: prefilter
MapBrdf
Shader location: sampler2d texture: brdf
Trait Implementations§
source§impl Clone for ShaderLocationIndex
impl Clone for ShaderLocationIndex
source§fn clone(&self) -> ShaderLocationIndex
fn clone(&self) -> ShaderLocationIndex
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ShaderLocationIndex
impl Debug for ShaderLocationIndex
source§impl Hash for ShaderLocationIndex
impl Hash for ShaderLocationIndex
source§impl PartialEq<ShaderLocationIndex> for ShaderLocationIndex
impl PartialEq<ShaderLocationIndex> for ShaderLocationIndex
source§fn eq(&self, other: &ShaderLocationIndex) -> bool
fn eq(&self, other: &ShaderLocationIndex) -> bool
self and other values to be equal, and is used
by ==.