Creates a new Renderer with the given scene, sampler and camera.
Renderer(this.scene, this.sampler, this.camera) { xRes = camera.res.x.toInt(); yRes = camera.res.y.toInt(); }