Value | Meaning |
---|---|
SHADER_LOC_VERTEX_POSITION0 | Shader location: vertex attribute: position |
SHADER_LOC_VERTEX_TEXCOORD011 | Shader location: vertex attribute: texcoord01 |
SHADER_LOC_VERTEX_TEXCOORD022 | Shader location: vertex attribute: texcoord02 |
SHADER_LOC_VERTEX_NORMAL3 | Shader location: vertex attribute: normal |
SHADER_LOC_VERTEX_TANGENT4 | Shader location: vertex attribute: tangent |
SHADER_LOC_VERTEX_COLOR5 | Shader location: vertex attribute: color |
SHADER_LOC_MATRIX_MVP6 | Shader location: matrix uniform: model-view-projection |
SHADER_LOC_MATRIX_VIEW7 | Shader location: matrix uniform: view (camera transform) |
SHADER_LOC_MATRIX_PROJECTION8 | Shader location: matrix uniform: projection |
SHADER_LOC_MATRIX_MODEL9 | Shader location: matrix uniform: model (transform) |
SHADER_LOC_MATRIX_NORMAL10 | Shader location: matrix uniform: normal |
SHADER_LOC_VECTOR_VIEW11 | Shader location: vector uniform: view |
SHADER_LOC_COLOR_DIFFUSE12 | Shader location: vector uniform: diffuse color |
SHADER_LOC_COLOR_SPECULAR13 | Shader location: vector uniform: specular color |
SHADER_LOC_COLOR_AMBIENT14 | Shader location: vector uniform: ambient color |
SHADER_LOC_MAP_ALBEDO15 | Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE) |
SHADER_LOC_MAP_METALNESS16 | Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR) |
SHADER_LOC_MAP_NORMAL17 | Shader location: sampler2d texture: normal |
SHADER_LOC_MAP_ROUGHNESS18 | Shader location: sampler2d texture: roughness |
SHADER_LOC_MAP_OCCLUSION19 | Shader location: sampler2d texture: occlusion |
SHADER_LOC_MAP_EMISSION20 | Shader location: sampler2d texture: emission |
SHADER_LOC_MAP_HEIGHT21 | Shader location: sampler2d texture: height |
SHADER_LOC_MAP_CUBEMAP22 | Shader location: samplerCube texture: cubemap |
SHADER_LOC_MAP_IRRADIANCE23 | Shader location: samplerCube texture: irradiance |
SHADER_LOC_MAP_PREFILTER24 | Shader location: samplerCube texture: prefilter |
SHADER_LOC_MAP_BRDF25 | Shader location: sampler2d texture: brdf |
Shader location index