playcanvas / playcanvas/engine
Fog + Tonemapping
Open
@mvaligursky is already working on this.
Since Dec 7, 2024.
area: graphics
V3
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Often, you want to fade your scene via a fog color so that it matches the clear color of the camera.
This works fine if you have tonemapping disabled. But let's say you enable linear tonemapping and have 0.1, 0.1, 0.1 clear color set, you need to set the fog color to roughly 0.21, 0.21, 0.21 for the scene to match up with the camera's clear color.
Is this because we need to be applying fog after the tonemap? Or should we be tonemapping the fog color?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.