godot/scene
jfons 3a53ae5d9f Implement visibility range and dependencies.
This commit adds the following properties to GeometryInstance3D: `visibility_range_begin`,
`visibility_range_begin_margin`, `visibility_range_end`, `visibility_range_end_margin`.

Together they define a range in which the GeometryInstance3D will be visible from the camera,
taking hysteresis into account for state changes. A begin or end value of 0 will be ignored,
so the visibility range can be open-ended in both directions.

This commit also adds the `visibility_parent` property to 'Node3D'.
Which defines the visibility parents of the node and its subtree (until
another parent is defined).

Visual instances with a visibility parent will only be visible when the parent, and all of its
ancestors recursively, are hidden because they are closer to the camera than their respective
`visibility_range_begin` thresholds.

Combining visibility ranges and visibility parents users can set-up a quick HLOD system
that shows high detail meshes when close (i.e buildings, trees) and merged low detail meshes
for far away groups (i.e. cities, woods).
2021-06-14 12:17:11 +02:00
..
2d Merge pull request #49526 from Chaosus/fix_textureregion_errors 2021-06-13 14:44:50 +02:00
3d Implement visibility range and dependencies. 2021-06-14 12:17:11 +02:00
animation Consistently prefix bound virtual methods with _ 2021-06-12 00:55:52 +02:00
audio Fixes small typos and grammar correction 2021-03-12 19:05:16 +05:30
debugger Rename Transform to Transform3D in core 2021-06-03 07:30:01 -04:00
gui Merge pull request #49526 from Chaosus/fix_textureregion_errors 2021-06-13 14:44:50 +02:00
main Fix Viewport crashes when not in tree 2021-06-13 12:51:26 +08:00
resources Merge pull request #49227 from pycbouh/editor-theme-freeze-changes 2021-06-13 15:44:32 +02:00
register_scene_types.cpp Continuation of work on visual particles system 2021-06-07 20:33:17 +03:00
register_scene_types.h
scene_string_names.cpp Merge pull request #49526 from Chaosus/fix_textureregion_errors 2021-06-13 14:44:50 +02:00
scene_string_names.h Merge pull request #49526 from Chaosus/fix_textureregion_errors 2021-06-13 14:44:50 +02:00
SCsub