THREE.JS Render pipeline base code