Jump to content

MRT post material


photo

Recommended Posts

Posted

In the previous version of Unigine (2.0) I used a post material with multiple render targets (using Unigine::TexturRender from the C++ API). However in Unigine 2.1 this doesn't seem to work anymore, it only writes to the first texture. After debugging I noticed that in the new rendering pipeline the post materials are no longer applied to render target directly but to an intermediate buffer, which does not care for multiple render targets and neither for the specified texture format.

 

Is there a way to achieve these results with 2.1? For the effect I'm trying to achieve I need to access the deferred buffers after rendering the scene, so if I can somehow access those after calling Render::renderViewport I could do without the post materials, as the only reason I use them is to secure the normal and depth buffers from the deferred pass that I need further in the code. Unfortunately it is not possible to perform the entire effect within the post material, as the post effect required multiple passes over the depth and normal buffers and the texture resolution of the final output is different as well.

  • 2 weeks later...
Posted

Hi!

 

There's no quick solution or workaround unfortunately. Please find all changes in the patch file in your private message.

×
×
  • Create New...