what do you call a 3D triangular shape that bends light when it passes through

Prism.

http://en.wikipedia.org/wiki/Prism_(optics)

The shape you are referring to is called a prism. A prism is a geometric shape with flat surfaces that are typically triangular in shape. When light passes through a prism, it undergoes refraction, which means that the light rays change direction as they pass through the prism. This bending of light is due to the different angles at which the light encounters the surfaces of the prism. This phenomenon is commonly used in optics for various applications like spectroscopy, where prisms separate white light into its component colors. To identify a prism in real life, you can look for a transparent or translucent object with at least two triangular faces and observe how light passes through it, causing the bending effect.