bevy_infinite_grid
bevy_infinite_grid copied to clipboard
HDR 3D camera funks up fade-out rendering
When I turn on HDR in a Bevy 3D camera (hdr: true
), the infinite grid fade out makes the faded out portion (out to infinity) turn black as opposed to turning transparent.
How I instantiate the camera bundle:
commands.spawn((
Camera3dBundle {
camera: Camera {
hdr: true,
clear_color: ClearColorConfig::Custom(Color::rgb(0.075, 0.075, 0.075)),
..default()
},
..default()
},
BloomSettings::NATURAL,
));
How I instantiate the grid:
commands.spawn(InfiniteGridBundle {
settings: InfiniteGridSettings {
fadeout_distance: 400.0,
scale: 0.1,
x_axis_color: Color::rgb(1.0, 1.0, 1.0),
z_axis_color: Color::rgb(1.0, 1.0, 1.0),
minor_line_color: Color::rgba(0.0, 0.0, 0.0, 0.0),
major_line_color: Color::rgb(1.0, 1.0, 1.0),
..Default::default()
},
..Default::default()
});