stohrendorf / CroftEngine

An open-source Tomb Raider 1 engine remake
Other
285 stars 18 forks source link

Top-down orthographic shadow mapping #85

Closed stohrendorf closed 4 years ago

stohrendorf commented 4 years ago

Modernize old bbox shadows.

Area to cover is 20 sectors, a single 2k shadow map (orthographic top-down) has a sampling step size of 20*1024/2048=10 units, seems enough. General idea is to build an orthographic top-down depth texture only containing dynamic items. Rendering will probably need multisampling for blurring the shadow map.

Need to add CSM, because the shadow volume is quite large.