How to optimize both effect and draw call for Glowlayer?

Case 1: Using Glowlayer default setting , effect is good, but each mesh produces double Draw Call, it’s bad.

Case 2: Using addExcludedMesh / addIncludeOnlyMesh / removeExcludedMesh / removeIncludedOnlyMesh is a good idea to reduce Draw Call, but the effect is trouble, the glowing shadow always in front of all mesh.

It’s there any ways to fix these two problems?

This is totally expected to have two draw calls as we are not rendering the same information :frowning: adding including is great if you are sure the elements won t occlude each other.

2 Likes