GodotVR / godot-xr-tools

Support scenes for AR and VR in Godot
MIT License
471 stars 64 forks source link

Move fading to effect and add collision fading support. #631

Closed Malcolmnixon closed 1 month ago

Malcolmnixon commented 3 months ago

This PR moves the fade logic to a common effect accessible by all nodes - including with the ability to fade to colors. Additionally it adds collision-based fading to prevent looking through walls.

DigitalN8m4r3 commented 3 months ago

lgtm, thanks again malcolm for working this out! we might want to supply a example inside the movement Demo that showcases a color change, something like a hurt zone?

Malcolmnixon commented 3 months ago

Added a basic damage area to the basic movement scene.

https://github.com/GodotVR/godot-xr-tools/assets/1863707/74977229-2e61-495f-9bbc-7100c101e8e5