Base code without z buffer working