Shadow Map
Last updated
What is Shadow Map?
Shadow mapping is a technique used in computer graphics to add shadows to a scene. This process involves two steps - generating the shadow map and then rendering the scene. In the shadow map generating step, the scene is rendered from the perspective of the light source capturing depth information. This results in a texture that stores the distance from the light to the nearest surface along each light direction, a “shadow map”. In the scene rendering step, the scene is rendered from the camera’s perspective. For each visible surface point, its distance from the light is calculated and compared to the corresponding stored distance in the shadow map. If the point's distance is greater than the stored distance, the point is in shadow; otherwise, it's lit. This information is used to adjust the color of the point, producing the shadow effect.
Free resources to learn Shadow Map
More in stage 12: Graphics API
Shadow Map: common questions
Can I learn Shadow Map in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Shadow Map in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Shadow Map tutorial for beginners?
It is lesson 80 of 144 in the free Game Developer roadmap, in stage 12, Graphics API. If you are new to Game Developer, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.