OptionalcameraAn object defining camera perspective parameters
OptionallightsAn 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.
The GPUDeviceManager used to create this GPURenderer.
OptionallabelOptional label of this GPURenderer.
HTMLElement or selector used as a container for our canvas. Could also be directly a canvas element.
OptionalpixelPixel ratio to use for rendering.
OptionalautoWhether to auto resize the renderer each time its GPURenderer#domElement size changes or not. It is advised to set this parameter to false if the provided container is a canvas element, and handle resizing by yourself.
OptionalcontextOptions used to configure this GPURenderer context. If not specified, format will be set with GPU.getPreferredCanvasFormat() and alphaMode with premultiplied.
OptionalrenderThe renderer RenderPass parameters.
OptionaluseDepth?: booleanWhether the renderer RenderPass should handle depth. Default to true.
OptionalsampleCount?: numberThe renderer RenderPass sample count (i.e. whether it should use multisampled antialiasing). Default to 4.
OptionalcolorAttachments?: [Partial<ColorAttachmentParams>, ...ColorAttachmentParams[]]Array of one or multiple ColorAttachmentParams. Useful to set a default clear value.
Parameters used to create a GPUCameraRenderer.