Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 629 Bytes

reflect.md

File metadata and controls

12 lines (6 loc) · 629 Bytes

Reflections

Planar Reflections is the oldest reflection technique used in video games. It's used for things like water, glass and mirrors. Basically any surface that is somewhat of a plane. This technique will not work on complex shapes, like a car.

The technique is simple, you reflect your camera around the reflection plane and render the scene upside down:

P1

The plane is just geometry rendered with opacity. This doesn't look great tough, you can see the upside down geometry! Because of this, the Stencyl buffer is used to clip the upside down image to the shape of the plane:

R2