I have a scene with just one object for which I want to achieve special effects.
I need to render the scene to texture (RTT) with with custom shaders(for special effects).
- Only the Diffuse component (Store as texture 1)
- Only the Specular component(Store as texture 2)
Then I need to do custom Post processing on texture 1 and 2 in a custom post-process shader. And ultimately render the scene to a quad, the combined texture 3 after post process is done.
I need help with how to proceed.
I have started exploring RTT https://playground.babylonjs.com/#R9FFCP#3
How can I use a custom shader with RTT ?