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.
OptionalexposureExposure to use. Default to 1.
OptionaltoneTone mapping to use if any. Default to Khronos.
OptionalcolorOutput color space to use. Default to srgb.
OptionalproductionFlag indicating whether we're running the production mode or not. If not, useful warnings could be logged to the console.
OptionaladapterAdditional options to use when requesting an adapter.
OptionalminFeatureLevel?: stringDefines the minimum desired featured level. If set to compatibility, then the it will try to get a core adapter first, and fallback to a compatibility adapter if it fails. Whenever the adapter is successfully created, the featureLevel flag will reflect the actual feature level of the adapter. Note that it won't have any effect if featureLevel is already set to compatibility.
OptionalautoWhether the GPUDeviceManager should create its own requestAnimationFrame loop to render or not.
OptionalrequiredOptional required features representing additional functionalities to use when requesting a device.
OptionalrequestOptional limits keys to use to force the device to use the maximum supported adapter limits.
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.
OptionalcontextOptions used to configure this GPURenderer context. If not specified, format will be set with GPU.getPreferredCanvasFormat() and alphaMode with premultiplied.
OptionalhdrWhether to render the full pipeline to HDR, i.e. using rgba16float texture format. When set to true, a mandatory ShaderPass will be used to render the last pass to the context current format.
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.
OptionalautoWhether the renderers created by this GPUCurtains instance should handle resizing by themselves or not.
OptionalwatchWhether this GPUCurtains instance should listen to scroll event or not.
Options used to create a GPUCurtains.