RenderSettings

Contains how the scene should be renderer. There could be different renderSettings for different scene quality.

Constructor

new L3D.RenderSettings()

Properties

static defaultShadowmapResolution number = 1024

The default shadow map resolution.

defaultShadowMapResolution number

The resolution to use for shadowmaps when shadows are set to use automatic resolution.

frustumCulling bool = true

If true, objects bounding volumes are tested against the cameras frustum to determine if they are visible and should be rendered.

ignoreClear bool = false

If true, skip global clear, used in case you want to render on top of an existing framebuffer.

ignoreViewports bool = false

If true, render to full viewport, ignoring the viewport in the cameras.

keepViewport bool = false

If true, do not force a full canvas viewport at render start, use the current one in WebGL as the full.

layers number = 0xff

This is masked with the camera layers to determine which object layers to render.

lightsDisabled bool = false

If true, the scene lights will not be used.

renderToFramebuffer bool = true

If true, the renderer will render to a framebuffer, allowing for post-rendering effects like post-processing. If false, the renderer will render directly to the screen.

shadowsEnabled bool = true

If false, no shadows will be rendered.

targetFramebuffer WebGLFramebuffer

The target framebuffer being rendered to, used by WebXR render targets.

updateAllShadowmaps bool = false

If true, all shadowmaps will be rendered, even if they are not visible.

updateShadowmaps bool = true

If true, shadow maps will be rendered every frame.