google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.79k stars 1.89k forks source link

usage of the Post process material #1818

Closed chengzg closed 2 years ago

chengzg commented 5 years ago

Hi,

I saw the recently update on the post process material domain. Some of the post processing shaders have been converted to this domain like ssao, blur etc. May i know will this be used to support custom post process step in future? If not, what can i do if i would like to support custom post processing?

Thanks & Regards, chengzg

romainguy commented 5 years ago

The goal is to make custom post-processing available in the future yes. We need to figure out how we want to expose the FrameGraph API.

an-kumar commented 4 years ago

Any update on this? Could you perhaps provide a sketch of how one could do post processing now before the exposure of frame graph?

Is there a way to use the post process material without the frame graph?

romainguy commented 4 years ago

You can do post processing by rendering to a texture and then rendering with that texture and custom material on the main surface. There was a bloom sample showing how to do this.

icarolelis1 commented 2 years ago

How do I render to two targets from one material definition?

ultimate-deej commented 5 months ago

If anyone is looking for the bloom sample: https://github.com/google/filament/tree/e8a7d9f0c29b26dd028306d27e4e6d44dd25b1fa/android/samples/sample-gltf-bloom