Transmission with solid white background - how to?

So I tried that and of course the result sucked :sweat_smile: So, I was thinking, is there any way to turn the background on when transmission renders its texture, and then back off for the final render?

yup, onBeforeRender = function( renderer ) { var isTransmissionPass = !!renderer.getRenderTarget(); does it for me, thanks!


does using material.envMap=hdriTexture also work?

nah this is added on top of what passes through the glass, so white + envmap = still white here

1 Like