mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
This commit is contained in:
parent
6e9e25b41d
commit
8f30c52a37
15 changed files with 119 additions and 40 deletions
|
|
@ -1434,7 +1434,7 @@ void VisualServerScene::_render_scene(const Transform p_cam_transform, const Cam
|
|||
}
|
||||
|
||||
ins->depth = near_plane.distance_to(ins->transform.origin);
|
||||
ins->depth_layer = CLAMP(int(ins->depth * 8 / z_far), 0, 7);
|
||||
ins->depth_layer = CLAMP(int(ins->depth * 16 / z_far), 0, 15);
|
||||
}
|
||||
|
||||
if (!keep) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue