hardStudy question · answer published in Deep Learning interview questions, so no pointsshaderslinear-algebra
Lighting wrong on stretched mesh
A sphere scaled (2, 1, 1) has wrong lighting in a custom shader that transforms normals with the model matrix. What is the correct normal transform?
Discussion 0
Join free to post in the discussion.
Related questions
- Main job of a vertex shaderGame Developer
- How often a fragment shader runsGame Developer
- Uniform or vertex attributeGame Developer
- Cartoon-style lightingGame Developer
- Shader build time explodedGame Developer
- Order of model, view and projectionGame Developer
- The Blinn-Phong half vectorGame Developer
- Different colours per instanceGame Developer