Is there way a check what kind of material the ray is passing through, and thus change the max depth accordingly?
Is there way a check what kind of material the ray is passing through, and thus change the max depth accordingly?