Category: mental ray > Texture
Multiple Outputs: Scalar and Boolean
This shader determines whether the ray is entering or leaving the object it has hit, based on a scan of parent rays. It is not based on the normal vector, which can be unreliable with certain types of geometry. The index of refraction ratio (outgoing divided by incoming) is returned. As a side effect, both incoming and outgoing indices of refraction are stored in the state (enter and ior, respectively), and the current volume shader becomes the refraction volume if the ray is entering.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License