fixed the triangle function. The camera is messed up, I think.