mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Use double-sided material for RayCast3D
This makes RayCast3Ds visible if the camera is fully inside one (e.g. a RayCast3d parented to the current Camera3D).
This commit is contained in:
parent
a9c53fa599
commit
e98f5a53ad
1 changed files with 2 additions and 0 deletions
|
@ -419,6 +419,8 @@ void RayCast3D::_update_debug_shape_material(bool p_check_collision) {
|
|||
debug_material = material;
|
||||
|
||||
material->set_shading_mode(StandardMaterial3D::SHADING_MODE_UNSHADED);
|
||||
// Use double-sided rendering so that the RayCast can be seen if the camera is inside.
|
||||
material->set_cull_mode(BaseMaterial3D::CULL_DISABLED);
|
||||
material->set_transparency(BaseMaterial3D::TRANSPARENCY_ALPHA);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue