Optional
cameraAn object defining camera perspective parameters
Optional
lightsAn object defining the maximum number of light to use when creating the GPUCameraRenderer. Can be set to false
to avoid creating lights and shadows buffers, but note this is a permanent choice and cannot be changed later.
Optional
productionFlag indicating whether we're running the production mode or not. If not, useful warnings could be logged to the console.
Optional
adapterAdditional options to use when requesting an adapter.
Optional
autoWhether the GPUDeviceManager should create its own requestAnimationFrame loop to render or not.
Optional
labelOptional label of this GPURenderer
HTMLElement or selector used as a container for our canvas. Could also be directly a canvas element.
Optional
pixelPixel ratio to use for rendering
Optional
contextOptions used to configure this GPURenderer context. If not specified, format
will be set with GPU.getPreferredCanvasFormat()
and alphaMode
with premultiplied
.
Optional
renderThe renderer RenderPass parameters
Whether the renderer RenderPass should handle depth. Default to true
The renderer RenderPass sample count (i.e. whether it should use multisampled antialiasing). Default to 4
The color values to clear to before drawing the renderer RenderPass. Default to [0, 0, 0, 0]
Optional
autoWhether the renderers created by this GPUCurtains instance should handle resizing by themselves or not.
Optional
watchWhether this GPUCurtains instance should listen to scroll event or not.
Options used to create a GPUCurtains.