cabal
cabal copied to clipboard
PBR forward: Add IBL/environment maps
Depends on https://github.com/bdero/cabal/issues/1 and https://github.com/bdero/cabal/issues/2.
Replace the placeholder lighting with lighting sampled from an environment map. Flutter GPU is currently missing mipmaps and cubemaps, both of which would make this easier.
As a stopgap:
- Take the irradiance (for diffuse lighting) as an equirectangular projection.
- For the specular part, we'll have to interpolate between textures.
The renderer will quickly enter the realm of diminishing returns and we should probably prioritize finishing Flutter GPU when we get here.