modified shading point to access the material only if intersected primitive is a triangle and not a curve