virtualx-engine/servers/rendering/renderer_rd/forward_mobile
JFonS c571e4a7f4 Implement distance fade and transparency
The built-in ALPHA in spatial shaders comes pre-set with a per-instance
transparency value. Multiply by it if you want to keep it.

The transparency value of any given GeometryInstance3D is affected by:
   - Its new "transparency" property.
   - Its own visiblity range when the new "visibility_range_fade_mode"
     property is set to "Self".
   - Its parent visibility range when the parent's fade mode is
     set to "Dependencies".

The "Self" mode will fade-out the instance when reaching the visibility
range limits, while the "Dependencies" mode will fade-in its
dependencies.

Per-instance transparency is only implemented in the forward clustered
renderer, support for mobile should be added in the future.

Co-authored-by: reduz <reduzio@gmail.com>
2021-10-25 11:39:34 +02:00
..
render_forward_mobile.cpp Implement distance fade and transparency 2021-10-25 11:39:34 +02:00
render_forward_mobile.h Implement distance fade and transparency 2021-10-25 11:39:34 +02:00
scene_shader_forward_mobile.cpp Added support for uniform arrays in shaders 2021-10-04 13:57:44 +03:00
scene_shader_forward_mobile.h Implement more rendering options as specialization constants 2021-07-19 21:51:29 -03:00
SCsub Create mobile renderer 2021-05-03 21:54:11 +10:00