HighlightLayer with renderingGroupId get error with a manual update RTT

In the playground, I have a manual update RTT, and a highlight layer only for meshes with renderingGroupId 0, and I have to wipe all caches for some reasons.
As effectLayer registered in scene._afterRenderingGroupDrawStage, glowMapMerge effect is called after RTT rendering, and it will set the engine.alphaMode to the BLEND(engine._alphaMode is ALPHA_ADD by default and will enable BLEND), so the noiseProceduralTexture renders strange with BLEND.

You should push your custom RTT into scene.customRenderTargets so that it is rendered at the right time (and with the right settings):

2 Likes