diff options
author | JFonS <joan.fonssanchez@gmail.com> | 2021-07-20 15:17:34 -0300 |
---|---|---|
committer | jfons <joan.fonssanchez@gmail.com> | 2021-10-25 11:39:34 +0200 |
commit | c571e4a7f4a5cc34fa9b7efeff37ee69fcf6249d (patch) | |
tree | a4c2c52f3f5bc8f53526b91b04845496bec2b30b /scene/3d/velocity_tracker_3d.h | |
parent | 88d9914519bd2016bd5181a7aa4c00f8063ad940 (diff) |
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>
Diffstat (limited to 'scene/3d/velocity_tracker_3d.h')
0 files changed, 0 insertions, 0 deletions