Hi folk, I’m just started to learn WebGL and shader for digging into more detail of rendering pipeline. So I’m very weak in a lot of basics here.
The question is, How can I attach the additional Frame Buffer to the ShaderMaterial?
For the background on why I want to achieve this.
I have a single mesh in the project which needs to create a glow effect on some of the faces.
For the performance reason, I can’t split those meshes into another cause there are already a lot of meshes in the scene.
I want to write glow parts into FBO in the fragment shader then use this to create the post-process.
If it is possible how could I do that?
And is this the way I should do it?