Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDR 3D camera funks up fade-out rendering #60

Open
rask opened this issue Apr 12, 2024 · 0 comments
Open

HDR 3D camera funks up fade-out rendering #60

rask opened this issue Apr 12, 2024 · 0 comments

Comments

@rask
Copy link

rask commented Apr 12, 2024

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()
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant