Adding a environmentTexture makes meshes translucent when glowlayer is behind them

All of my meshes become translucent when a glow layer is behind them after adding Environment HDR Texture. How can I make the meshes opaque? Video for clarification.

I am not sure how would that be possible :slight_smile:

Could you share a repro in the playground ?

There are other dependencies and such though feel free to download the code here. You should be able to run indev.html fine, though it will tell you to log in. To circumvent this just enter the following js into the console and reload:

ls.auth='30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 64 65 76';
document.cookie='auth=MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDBkZXY=';

This is really hard for the community to look into every custom projects, it would be really amazing to isolate the issue in the playground if possible ?

Have you tried to explicitely exclude the meshes from the glow layer (glowlayer.addExcludedMesh)?


I’ve been using glowLayer.addIncludedOnlyMesh though after trying out addExcludedMesh, it doesn’t appear to work either.

Unfortunately, the playground doesn’t have a way to use “raw” HTML apps. As for finding the issue, it appears to be because I’m using glowLayer.addIncludedOnlyMesh compared to the glowLayer.customEmissiveColorSelector from before.

For source comparison:
Infdev 2 (Previous version, working) - line 753
Infdev 3 (Still in development, bugged) - line 775
There are base64 encoded assets so it’s more readable if you turn off word wrap

But you do not need raw html, you should be able to repro with simple spheres and similar material / glow setup ?

I’ll try and make a repro.

1 Like

Hi @Vortex ! Just checking in, were you able to make a repro? :slight_smile:

@carolhmj,

No. I have not made a repro on the playground due to the complexity of the game dependencies and such… you can find it here (and access the source code with F12/Ctrl+U): https://annihilation.drvortex.dev/play

Unfortunately it is impossible for the community to enter deep in all the applications which are facing issues :frowning: I tried a couple things without success but whenever you find time to create a simpler repro this would be great as I am sure the issue could also exist for other users.