quickfix
fixed rotation & added depth buffer checking