pex-gl / pex-renderer

Physically based renderer (PBR) and scene graph for PEX.
https://pex-gl.github.io/pex-renderer/examples/index.html
MIT License
237 stars 16 forks source link

Post processing bloom #221

Closed dmnsgn closed 4 years ago

dmnsgn commented 5 years ago

Fix https://github.com/pex-gl/pex-renderer/issues/52

dmnsgn commented 5 years ago

@vorg Is there anything else we should double check when implementing this?

simonharrisco commented 5 years ago

4k: 4k

1080p: 1080p

720p: 720p

Its hard to tell what is because of the lower resolution. but it looks good

vorg commented 5 years ago

Resolution independence was the biggest issue from what i remember. Will review this branch before merging.

vorg commented 5 years ago

One connected issue with threshold is are we booming everything vs emissive only. Also what is threshold 1.5? Yes color value but in lunes? Some radiance? Pre/post exposure? Pre/post gamma?

This needs thought and documentation. Also connected: new BRDF and lighting models after we aligned with Filament (also pending review).

vorg commented 4 years ago

One connected issue with threshold is are we booming everything vs emissive only

Actually we are not https://github.com/pex-gl/pex-renderer/blob/post-processing-bloom/shaders/post-processing/threshold.frag.js#L33

Setting bloomTreshold to hight value will result in only emissive blooming.