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

Add HDR support #11

Merged
merged 2 commits into from
Jun 15, 2024
Merged

Add HDR support #11

merged 2 commits into from
Jun 15, 2024

Conversation

jgayfer
Copy link
Owner

@jgayfer jgayfer commented Jun 15, 2024

Summary

As HDR uses a different texture format, we need to set it on a per view basis.

As the pipeline is currently more of a "one and done" construct, we need to make use of a specialized pipeline. It allows us to dynamically create the render pipeline descriptor, giving us a place to hook into if each view has HDR enabled.

On the view node side of things, we need to ensure we're grabbing the specialized pipeline ID from the view entity, as we are no longer constructing a "static" variant of the pipeline.

Fixes #10

As HDR uses a different texture format, we need to set it on a per view
basis.

As the pipeline is currently more of a "one and done" construct, we need to
make use of a specialized pipeline. It allows us to dynamically create
the render pipeline descriptor, giving us a place to hook into if each
view has HDR enabled.

On the view node side of things, we need to ensure we're grabbing the
specialized pipeline ID from the view entity, as we are no longer
constructing a "static" variant of the pipeline.
@jgayfer
Copy link
Owner Author

jgayfer commented Jun 15, 2024

@senpaaii Wouldn't mind a quick test on your end to verify this fixes #10 :)

@senpaaii
Copy link

Hey @jgayfer, tested it out in my game with the new branch, and it works perfectly! It's great to be able to do some cheap bloom effects on top of the nice lighting from this lib :)

Thanks for the quick fix! looking forward to this evolving further :)

@jgayfer jgayfer merged commit aee087c into main Jun 15, 2024
6 checks passed
@jgayfer jgayfer deleted the hdr branch June 15, 2024 14:40
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

Successfully merging this pull request may close these issues.

Enabling HDR crashes on launch
2 participants