make gizmos full bright and not affected by lights
@@ -7,6 +7,7 @@ use crate::{
},
GameEngine, Message,
};
+use rg3d::scene::mesh::RenderPath;
use rg3d::{
core::{
algebra::{Matrix4, UnitQuaternion, Vector2, Vector3},
@@ -126,6 +127,7 @@ fn make_move_axis(
.build(),
),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![SurfaceBuilder::new(Arc::new(RwLock::new(
SurfaceSharedData::make_cone(10, 0.05, 0.1, Matrix4::identity()),
@@ -143,6 +145,7 @@ fn make_move_axis(
.build(),
),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![SurfaceBuilder::new(Arc::new(RwLock::new(
SurfaceSharedData::make_cylinder(10, 0.015, 1.0, true, Matrix4::identity()),
@@ -170,6 +173,7 @@ fn create_quad_plane(
.build(),
),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![{
SurfaceBuilder::new(Arc::new(RwLock::new(SurfaceSharedData::make_quad(
@@ -649,6 +653,7 @@ fn make_scale_axis(
.build(),
),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![SurfaceBuilder::new(Arc::new(RwLock::new(
SurfaceSharedData::make_cube(Matrix4::new_nonuniform_scaling(&Vector3::new(
@@ -668,6 +673,7 @@ fn make_scale_axis(
.build(),
),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![SurfaceBuilder::new(Arc::new(RwLock::new(
SurfaceSharedData::make_cylinder(10, 0.015, 1.0, true, Matrix4::identity()),
@@ -690,6 +696,7 @@ impl ScaleGizmo {
.with_name("Origin")
.with_visibility(false),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![SurfaceBuilder::new(Arc::new(RwLock::new(
SurfaceSharedData::make_cube(Matrix4::new_nonuniform_scaling(&Vector3::new(
@@ -1098,6 +1105,7 @@ fn make_rotation_ribbon(
.build(),
),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![SurfaceBuilder::new(Arc::new(RwLock::new(
SurfaceSharedData::make_cylinder(
@@ -1124,6 +1132,7 @@ impl RotationGizmo {
.with_depth_offset(0.5)
.with_visibility(false),
)
+ .with_render_path(RenderPath::Forward)
.with_cast_shadows(false)
.with_surfaces(vec![SurfaceBuilder::new(Arc::new(RwLock::new(
SurfaceSharedData::make_sphere(10, 10, 0.1),
