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

Suggestion: Implement HDR shading with tonemapping #31

Open
eira-fransham opened this issue Jul 27, 2020 · 0 comments
Open

Suggestion: Implement HDR shading with tonemapping #31

eira-fransham opened this issue Jul 27, 2020 · 0 comments

Comments

@eira-fransham
Copy link

In my project where I've been rendering Quake 2 maps (https://github.com/Vurich/goeld) I implemented tonemapping, by rendering everything to Rg11b10Float and then using an implementation of ACES tonemapping on the luminance value of each pixel (shader here). This makes the whole world look way better, and I can't recommend it enough - especially since you've already got a post-processing step. It makes everything in shadow a lot easier to see, and makes the image more cohesive overall. Check out some of the screenshots in the readme. You may need to play with the gamma and intensity amounts until you get something that looks pretty good, but it shouldn't be too tough to implement. Modern HDR rendering uses adaptive gamma, but old games designed their maps around having a single gamma value so you don't need to implement anything like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants