The problem in the previous post was that I was forgetting to perform the perspective divide on the vertices. I was already doing the divide on the texture coordinates.
Updated source
View rendered from eye space:
![](http://cs.unm.edu/~jbowles/cs513/assign2a/shadowmap_camera_small.png)
View rendered from the light's point of view:
![](http://cs.unm.edu/~jbowles/cs513/assign2a/shadowmap_light_small.png)
Notice how the shadow isn't visible from the light's point of view?
No comments:
Post a Comment