-
Googled and found no existing examples. I found some useful information related to how to use framebuffers and how bloom effect is calculated, but it turned out still difficult to write a viable version for twgl
is there any example or plugin I could refer to? also found an example based on regl https://github.com/rreusser/bloom-effect-example however it doesn't fit my current use case. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
IIRC A bloom filter is a multi-step process
This article goes over the steps, including step 3 using 2 steps. See: https://learnopengl.com/Advanced-Lighting/Bloom Step 2 can also be done with special data where you mark certain materials as "glowing". It'd be up to you how to specify that data. Some people use a glow texture (white = glow, black = no-glow), some use special materials. In any case in step 1 (or 1.5) you'd generate a glow-texture to tell you which pixels to keep in step 2, rather than just choosing some brightness |
Beta Was this translation helpful? Give feedback.
-
excuse me, is there any example for glowing WebGPU textures? I tried to reuse the steps but with code from blur sample, it was really slow. I'm still confused on how to apply glowing to |
Beta Was this translation helpful? Give feedback.
IIRC A bloom filter is a multi-step process
This article goes over the steps, including step 3 using 2 steps.
See: https://learnopengl.com/Advanced-Lighting/Bloom
Step 2 can also be done with special data where you mark certain materials as "glowing". It'd be up to you how to specify that data. Some people use a glow textur…