Hi, I have a refractive material and since the refraction only happens on opaque objects, I would like to hide any transparent materials behind the refractive one. Otherwise, it would look odd. I’ve seen that the SingleLayerWater material does this effect, is there a way to do it on a regular material with e.g. a checkbox? Thanks for the help!
you can’t. tested it real quick in 5.7 in my low end setup. apparently only additive shading supports refraction in that version. the translucent pass is still rendered and comped later i guess. and it’s very glitchy with occluding objects. a thing you could try is to render your refractive object as a custom depth and stencil pass with no visual output and do the screen space refraction in the post process. that should refract even translucent objects. you can’t have occlusion in front of it tho.
the only other way i know to control this is using raytracing. it supports refraction and bouncing thru glass.