hard20 pts · first answer countsshaderslinear-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
- Shader build time explodedGame Developer
- Order of a TRS matrixGame Developer
- Stutter the first time an effect appearsGame Developer
- Shape of a matrix productMachine Learning Engineer
- Cosine similarity by handMachine Learning Engineer
- Dot product of two vectorsAI Engineer (LLM & Generative AI)
- Length of a vectorAI Engineer (LLM & Generative AI)
- Cosine similarity by handAI Engineer (LLM & Generative AI)