Skip to content

Sky atmosphere gets brighter when the sun is offscreen in HDR mode #8718

@lilleyse

Description

@lilleyse

If you look carefully the sky atmosphere gets brighter when the sun is offscreen. I captured this gif on the globe-alpha branch where it's more noticeable.

sun-bug

Sandcastle

Here's the results of my investigation so far:

When the sun is onscreen the sky atmosphere gets rendered to the sun's post process framebuffer. It turns out the framebuffer uses 8-bit color always, even if HDR is enabled. I thought changing the pixel datatype would be enough to fix the problem but the sun post process just draws a black box (ignore the blue spheres). I didn't want to spend too much time investigating right now this but if anyone picks it up in the future here's my in-progress diff: sun.diff.txt.

sun-bug-1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions