Skip to content

Commit

Permalink
content: Adjust Icons::Jetpack exhaust again.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Aug 17, 2024
1 parent 7aab55c commit 343efcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion all-is-cubes/src/inv/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ impl Icons {
let exhaust = if active {
Block::builder()
.color(rgba_const!(1.0, 1.0, 1.0, 0.1))
.light_emission(rgb_const!(1.0, 0.8, 0.8) * 1.0)
.light_emission(rgb_const!(1.0, 0.8, 0.8) * 16.0)
.build()
} else {
AIR
Expand Down
Binary file modified test-renderers/expected/renderers/icons-all.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions test-renderers/src/test_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,10 @@ async fn icons(mut context: RenderTestContext) {
options.fov_y = NotNan::from(45);
context
.render_comparison_test(
// Fairly sloppy because this test is looking for "Does this icon look right"
Threshold::new([(8, 2000), (20, 100), (50, 20)]),
// Fairly sloppy because this test is looking for "Does this icon look right",
// and because volumetric rendering of transparent stuff (the jetpack exhaust)
// is not fully correct yet
Threshold::new([(8, 2000), (50, 100), (120, 40)]),
StandardCameras::from_constant_for_test(
options,
Viewport::with_scale(1.0, [256, (256.0 * aspect_ratio) as u32]),
Expand Down

0 comments on commit 343efcd

Please sign in to comment.