SaydAziz / ApocalypseTrain

A 4 player Co-Op Survival Top Down Shooter
1 stars 0 forks source link

PFE-Dynamic-Player-Occlusion #132

Closed SaydAziz closed 2 days ago

SaydAziz commented 2 days ago

TODO: Make roofs and walls of buildings fade when entering them or being behind them.

Solution: Create DynamicOcclusion Component that attaches to a player. The component will send a spheretrace on tick from the camera to the player to check if there is anything between them (Trace is on a separate channel). If there is something occluding the player, the component will fade it's opacity using the Dither Opacity technique.

Extra: Created temp meshes and material to test the system.