Hello. Maybe someone knows how to make multiple outputs in babylon.js node material editor? In classic glsl I can make multiple outputs so that a fragment is rendered into several textures at once.
for example:
layout(location = 0) out highp vec4 target0;
layout(location = 1) out highp vec4 target1;
But nme provides only one output, and I did not find how to add one or more to the shader. For example, I want to render the water texture into the main texture, and its refractive index into the second one, so that I can then go through the post-process and make the water really realistic. Has anyone solved this problem?