asc-community / MxEngine

C++ open source 3D game engine
BSD 3-Clause "New" or "Revised" License
1.12k stars 59 forks source link

Feature/god ray #62

Closed fall2019 closed 1 year ago

fall2019 commented 1 year ago

Add a render pass for god rays effect. pls review.

MomoDeve commented 1 year ago

will check it at the weekends

MomoDeve commented 1 year ago

IMG_20230426_013450_238 See artefacts when inside the god rays. Also metal surfaces like lion head are lit weirdly...

fall2019 commented 1 year ago

1 fix artefacts shown in image 2 add component

MomoDeve commented 1 year ago

image need check for bounds to not sample closest shadow map that can be clipped. Or maybe I should change the clip algorithm for shadow maps... Not sure if its possible

fall2019 commented 1 year ago

图片 Hmmm It suppose to be wall

fall2019 commented 1 year ago

So boundary issue should disapear by just tweak the projection distance

fall2019 commented 1 year ago

So boundary issue should disapear by just tweak the projection distance

图片