1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00
Files
godot/servers/rendering/renderer_rd/shaders
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
..
2021-08-29 14:57:16 +10:00
2021-05-03 21:54:11 +10:00
2021-04-14 11:37:52 -03:00
2021-07-05 17:17:45 -03:00
2021-06-05 09:28:56 -03:00
2021-07-03 23:32:34 -03:00
2021-05-11 11:21:36 -03:00
2021-04-14 11:37:52 -03:00
2021-04-14 11:37:52 -03:00
2021-06-05 09:28:56 -03:00
2021-06-05 09:28:56 -03:00