Collision Shader Demo

Green = Safe | Red = Collision

Drag finger/mouse to move the cube.