aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline/debug_render_pipeline/debug_render_style.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2023-12-09 21:46:41 +0100
committerSébastien Crozet <developer@crozet.re>2023-12-09 21:46:41 +0100
commit39f4520b91311bfdced713a6771833eff476bfa5 (patch)
tree66341aef74aa1c7a60efbdd31b4e8f9c304288f5 /src/pipeline/debug_render_pipeline/debug_render_style.rs
parent4015cefebf3924c6b1dbf9caa5c8236a1de13108 (diff)
downloadrapier-39f4520b91311bfdced713a6771833eff476bfa5.tar.gz
rapier-39f4520b91311bfdced713a6771833eff476bfa5.tar.bz2
rapier-39f4520b91311bfdced713a6771833eff476bfa5.zip
feat: actually apply the disabled_color_multiplier in the debug-renderer
Diffstat (limited to 'src/pipeline/debug_render_pipeline/debug_render_style.rs')
-rw-r--r--src/pipeline/debug_render_pipeline/debug_render_style.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipeline/debug_render_pipeline/debug_render_style.rs b/src/pipeline/debug_render_pipeline/debug_render_style.rs
index 0d4f1ae..c977cab 100644
--- a/src/pipeline/debug_render_pipeline/debug_render_style.rs
+++ b/src/pipeline/debug_render_pipeline/debug_render_style.rs
@@ -39,7 +39,7 @@ pub struct DebugRenderStyle {
/// If a rigid-body is disabled, its attached entities will have their colors
/// multiplied by this array. (For a joint, both attached rigid-bodies must be disabled
/// for this multiplier to be applied).
- pub disable_color_multiplier: [f32; 4],
+ pub disabled_color_multiplier: [f32; 4],
/// The length of the local coordinate axes rendered for a rigid-body.
pub rigid_body_axes_length: Real,
/// The collor for the segments joining the two contact points.
@@ -66,7 +66,7 @@ impl Default for DebugRenderStyle {
multibody_joint_anchor_color: [300.0, 1.0, 0.4, 1.0],
multibody_joint_separation_color: [0.0, 1.0, 0.4, 1.0],
sleep_color_multiplier: [1.0, 1.0, 0.2, 1.0],
- disable_color_multiplier: [0.25, 1.0, 0.2, 1.0],
+ disabled_color_multiplier: [0.0, 0.0, 1.0, 1.0],
rigid_body_axes_length: 0.5,
contact_depth_color: [120.0, 1.0, 0.4, 1.0],
contact_normal_color: [0.0, 1.0, 1.0, 1.0],