CatDogEngine icon indicating copy to clipboard operation
CatDogEngine copied to clipboard

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

Open T-rvw opened this issue 1 year ago • 0 comments
trafficstars

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.

T-rvw avatar Feb 07 '24 08:02 T-rvw