I have this playground where I have a giant robot and a cube covered with textures.
My issue is with glowlayer turning white on the Robot whereas it is pink-ish (as it should be) on the cube.
Both models have the same textures
You should make a separate mesh, submesh or at least material for your glowing parts.
Doing this will allow you to have more control over how these parts glow (and may affect surrounding materials/meshes). In particular, @tanpopo and @11128 are both correct in that the glowLayer uses the emissive (color and/or texture) to emit glow. This also means that this emissive color/texture can be affected by direct light. Separating your glowing meshes from your non-glowing meshes will allow you to set levels to the emissive and direct light for these parts. Typically you can ‘explode’ the level (emissiveIntensity or emissiveTexture.level in case of using a texture. Next to avoid these parts turning white when close and under direct light, you can compensate by setting the directIntensity (on PBR Mat) to a negative level. This way you can get very strong emissive/glow also in the distance.
Edit: Here’s the link to a thread that might be of interest to you:
To be honest, I don’t quite understand this approach. I’m not sure of which parts you want to be glowing but I’d rather think those are the ones from your new emissiveTexture, correct?
Well, these arent’ really glowing at this moment, from what I can see.
And now you have two gl, nearly doubling the number of draw calls for a visual result I’m not too sure of.
Of course, my opinion only.
Edit: Rushed version (sry) but I was thinking it would be more something like that (not sure about the color though). Yet, I may be wrong, am I?
Your rushed version is how I expect it to look; However for a reason I never mentioned I can’t hardcode the color like in your playground; (some giant robot have different color emissive). I’m really trying to have a glow effect that uses the color from the emissive texture rather than turning white;
I have somewhat obtained the result I want in this playground using the node material manager:
You can see the difference with the original playground
The light is blue in my playground rather than turning white;
In the node material I removed the white color and passed the emissive texture again;
The problem is that this isn’t really generating a PBRMaterial so I can’t just give that nodeMaterial to the robot;
I guess you could assign an id to your meshes/submeshes (and or materials) or an identifier within the id that makes them part of group and use ‘split’ or ‘includes’ to select a group and assign whatever specifity you need for this ‘group’.