bevy_infinite_grid icon indicating copy to clipboard operation
bevy_infinite_grid copied to clipboard

HDR 3D camera funks up fade-out rendering

Open rask opened this issue 10 months ago • 0 comments

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.

grid


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()
    });

rask avatar Apr 12 '24 11:04 rask