Skip to content

Commit

Permalink
Use correct scaling of weights
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp committed Jan 25, 2025
1 parent 1a5a913 commit c463094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alvr/graphics/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,17 +348,17 @@ fn set_passthrough_push_constants(render_pass: &mut RenderPass, config: Option<&
set_float(
render_pass,
CK_DIST_CONST_OFFSET,
f32::max(config.hue_range_deg * DEG_TO_NORM, 0.01),
f32::max(config.hue_range_deg * DEG_TO_NORM / 2.0, 0.01),
);
set_float(
render_pass,
CK_DIST_CONST_OFFSET + FLOAT_SIZE,
f32::max(config.saturation_range, 0.01),
f32::max(config.saturation_range / 2.0, 0.01),
);
set_float(
render_pass,
CK_DIST_CONST_OFFSET + 2 * FLOAT_SIZE,
f32::max(config.value_range, 0.01),
f32::max(config.value_range / 2.0, 0.01),
);

set_float(
Expand Down

0 comments on commit c463094

Please sign in to comment.