this is just the BRP (Basic Render/Renderer Pipeline). all initial credits go to myself ( @Mehlon_ ) and @Scratch_Games3000.
v1.1: added z-clipping(somewhat)