Disable Refraction on Material

Hello I have a transparent Material which causing problem with the refraction when ray traced. Is there a way to disable refraction per Material/Mesh?

Yes, don’t use the pin:

image

Unfortunately that does not work. It still get some sort of refraction thing. Just when I type in r.RayTracing.Translucency.Refraction 0 it disappears but for everything.

Ok, just for confusion, I see:

Which version of Unreal Engine are you using? Since older versions use the specular input for raytraced refraction, it was only changed in newer versions (4.26 i think), that raytracing also uses the refraction input.

Other than that, if you are in 4.26 or 4.27, then you can set refraction to be non existent, if you feed in a scalar with the value of 1 into the refraction input (but feeding in nothing should also default to 1).
Reason for that is, that Unreal calculates the light traveling from air, which has an IOR of 1 (or so close to 1, that everyone uses 1), and whatever IOR your material would have, like 1.5 for some glass, or 1.33 for water.
But if you feed in 1, then you tell Unreal, that your material is also air, and no refraction will happen, if light travels from air to air → from IOR 1 to IOR 1.

1 Like