Skip to content

What exactly IS shadowmap? #35

Discussion options

You must be logged in to vote

Shadow mapping records the closest depth of each point from the perspective of the light and the camera. The two depth values can be compared to determine if a pixel is "in shadow" or not. This requires a position attribute for both the regular position and a separate shadow map position. The "shadow map" is just the depth texture of the scene rendered from the light's perspective. This is a standard technique, which you can read about below.
https://learnopengl.com/Advanced-Lighting/Shadows/Shadow-Mapping

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Trainmaster9977
Comment options

Answer selected by Trainmaster9977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants