James-Whitney / Voyager

CSC476 Final Project
0 stars 0 forks source link

Update Shadows for new World #44

Closed andrewjpiro closed 6 years ago

andrewjpiro commented 6 years ago

This updates the shadows to work in an arbitrary world. It grabs the height from the terrain and uses this for the Near/Far planes. The X/Y boundaries are centered around the player and offset by a constant distance.

Along with this it adds the code for increasing bias on edges with tangents perpindicular to the light and bumps up the resolution of the shadow maps through an added constant.