cabal icon indicating copy to clipboard operation
cabal copied to clipboard

PBR forward: Add IBL/environment maps

Open bdero opened this issue 1 year ago • 1 comments

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.

bdero avatar Mar 06 '24 21:03 bdero

The renderer will quickly enter the realm of diminishing returns and we should probably prioritize finishing Flutter GPU when we get here.

bdero avatar Mar 06 '24 21:03 bdero