Removed ontop property, added a material rendering priority system. Fixes #9935, closes #10135

This commit is contained in:
Juan Linietsky 2017-09-01 12:56:52 -03:00
parent 6e9e25b41d
commit 8f30c52a37
15 changed files with 119 additions and 40 deletions

View file

@ -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) {