Say,I use a rendertarget to draw some layer like this:
worldLayer.renderTarget = myRenderTarget;
Then I can show the captured texture on one of the image:
imageElement.texture= myRenderTarget.colorBuffer;
But when I add some post-effects on camera,the rendertarget is not shown.
Does the post-effects affect all layers on the camera?can I disable post-effects for some specific layers?
@mvaligursky Thanks so much for your advice
BTW I wonder if there is a method to replace all the shader before rendering?like unity does here: https://docs.unity3d.com/Manual/SL-ShaderReplacement.html
So I can easily mark some special meshes to pure white or pure black for posteffect purpose.
If there’s not,how can I achieve this in playcanvas,can you give me some advice?