shamansir / elm-aframe / AFrame.Components.Renderer

Renderer

Canvas

maxCanvasWidth : Basics.Int -> AFrame.Properties.Property

Maximum canvas width. Uses the size multiplied by device pixel ratio. Does not limit canvas width if set to -1.

Default : 1920

maxCanvasHeight : Basics.Int -> AFrame.Properties.Property

Maximum canvas height. Behaves the same as maxCanvasWidth.

Default : 1920

Configuration

alpha : Basics.Bool -> AFrame.Properties.Property

Whether the canvas should contain an alpha buffer.

Default : true

antialias : Basics.Bool -> AFrame.Properties.Property

Whether to perform antialiasing.

Default : auto

antialiasAuto : AFrame.Properties.Property

Antialiasing is disabled on mobile, enabled on desktop.

colorManagement : Basics.Bool -> AFrame.Properties.Property

Whether to use a color-managed linear workflow.

Default : false

foveationLevel : AFrame.Variants.FoveationLevel.FoveationLevel -> AFrame.Properties.Property

Enables foveation in VR to improve perf.

Default : none

highRefreshRate : Basics.Bool -> AFrame.Properties.Property

Toggles 72hz mode on Oculus Browser. Defaults to 60hz.

Default : false

logarithmicDepthBuffer : Basics.Bool -> AFrame.Properties.Property

Whether to use a logarithmic depth buffer.

Default : auto

logarithmicDepthBufferAuto : AFrame.Properties.Property

physicallyCorrectLights : Basics.Bool -> AFrame.Properties.Property

Whether to use physically-correct light attenuation.

Default : false

precision : AFrame.Variants.Precision.Precision -> AFrame.Properties.Property

Fragment shader precision : low, medium or high.

Default : high

sortObjects : Basics.Bool -> AFrame.Properties.Property

Whether to sort objects before rendering.

Default : false