Color instead HDR in refraction

Hi,

My scene is illuminated by a HDR, and an object with glass material. The HDR is transparent (it doesn´t appears in render). Is there some way to render the glass refraction showing a white color instead the HDR?

Thanks,

That’s quite easy, actually… Just use a Light Path > is Transmission Ray node to replace the HDR with a color of your liking (in my example red):


The HDR still lights the scene and you can still see it in the reflections on the glass, but the refraction shows the bright red color of the bottom background shader.

first off, the world node where you put the hdr image, you have to plug the image to the strength input of the background node, and the texture should be set to non-color data, use another instance of the texture as color data to plug it into the color node of the background, or you could just place a white color here.
add a mix color and use light path is glossy to mix a white color. or use the material ID node if you want only this particular material to have a white reflection.