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

[Precompute BRDF] Calcualte preintegrated BRDF for IBL/... in a compute pre-pass #464

Open
T-rvw opened this issue Feb 7, 2024 · 0 comments
Assignees

Comments

@T-rvw
Copy link
Contributor

T-rvw commented Feb 7, 2024

bgfx implementation is similar to what we did in PBR sky. You can also have a look at https://github.com/pezcode/Cluster/blob/master/src/Renderer/Shaders/pbr.sh.

IBL brdf can refer to https://github.com/DiligentGraphics/DiligentFX/blob/1c1a425d114e8f581267f22b0f02b32b2739cbf9/Shaders/PBR/private/PrecomputeBRDF.psh.

Then you can define an BRDF type enum to support multiple kinds of BRDF functions to use.

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

2 participants