glossy reflections and broken refraction code