GodotVR / godot_openxr_vendors

Godot 4 wrapper for OpenXR vendors loaders and extensions
MIT License
82 stars 17 forks source link

Implement XR_FB_composition_layer_alpha_blend extension wrapper #137

Closed devloglogan closed 2 months ago

devloglogan commented 2 months ago

Provides properties to OpenXRCompositionLayer nodes allowing users to modify color/alpha blend factors. The enable_alpha_blend_extension checkbox must be ticked for the other properties to take effect.

composition_layer_alpha_blend

A quick example using transparent red composition layer quads on a blue background (only using options BLEND_FACTOR_ZERO and BLEND_FACTOR_ONE). Here is how they look in the editor:

alpha_blend_before

And how they look at runtime:

alpha_blend_after