Home › Per LearnOpenGL (Normal Mapping), normals stored…
Per LearnOpenGL (Normal Mapping), normals stored in a normal map are most commonly in which space?
AObject space (no transformation needed in shader)
BTangent space (texture stays geometry-independent)
CWorld space (rotated each draw call by world matrix)
DScreen space (after rasterization onto framebuffer)
Answer & Solution
Correct answer: B. Tangent space (texture stays geometry-independent)
LearnOpenGL Normal Mapping: normals encoded in tangent space (T, B, N basis); shader rotates by TBN to world space. Lets one map work on any mesh.
Related questions
Per LearnOpenGL (compute shaders), the WORKGROUP for a GLSL compute shader is invoked via For UNIFORM BUFFER OBJECTS (UBO) and SHADER STORAGE BUFFER OBJECTS (SSBO), the key differePer LearnOpenGL (Lighting), the BLINN-PHONG specular highlight uses which vector instead oIn a fragment shader, BRANCHING on a uniform vs a varying / per-fragment value differs becPer The Book of Shaders, a SDF-based circle shape in a fragment shader at point uv (centrePer Microsoft HLSL docs, a vertex shader output marked SV_POSITION corresponds to which GLPer LearnOpenGL, the CLIP space output (gl_Position) is converted to NDC by which operatioPer LearnOpenGL (Transformations), the standard order of matrix multiplication for a verte