Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EngineOptions

Interface defining initialization parameters for Engine class

Hierarchy

  • WebGLContextAttributes
    • EngineOptions

Index

Properties

Optional alphaSearch playground for alpha

alpha: boolean

Optional antialiasSearch playground for antialias

antialias: boolean

Optional audioEngineSearch playground for audioEngine

audioEngine: boolean

Defines if webaudio should be initialized as well

see

https://doc.babylonjs.com/how_to/playing_sounds_and_music

Optional autoEnableWebVRSearch playground for autoEnableWebVR

autoEnableWebVR: boolean

Defines if webvr should be enabled automatically

see

https://doc.babylonjs.com/how_to/webvr_camera

Optional depthSearch playground for depth

depth: boolean

Optional desynchronizedSearch playground for desynchronized

desynchronized: boolean

Optional deterministicLockstepSearch playground for deterministicLockstep

deterministicLockstep: boolean

Defines if animations should run using a deterministic lock step

see

https://doc.babylonjs.com/babylon101/animations#deterministic-lockstep

Optional disableWebGL2SupportSearch playground for disableWebGL2Support

disableWebGL2Support: boolean

Defines if webgl2 should be turned off even if supported

see

https://doc.babylonjs.com/features/webgl2

Optional doNotHandleContextLostSearch playground for doNotHandleContextLost

doNotHandleContextLost: boolean

Defines that engine should ignore context lost events If this event happens when this parameter is true, you will have to reload the page to restore rendering

Optional doNotHandleTouchActionSearch playground for doNotHandleTouchAction

doNotHandleTouchAction: boolean

Defines that engine should ignore modifying touch action attribute and style If not handle, you might need to set it up on your side for expected touch devices behavior.

Optional failIfMajorPerformanceCaveatSearch playground for failIfMajorPerformanceCaveat

failIfMajorPerformanceCaveat: boolean

Will prevent the system from falling back to software implementation if a hardware device cannot be created

Optional limitDeviceRatioSearch playground for limitDeviceRatio

limitDeviceRatio: number

Defines if the engine should no exceed a specified device ratio

see

https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio

Optional lockstepMaxStepsSearch playground for lockstepMaxSteps

lockstepMaxSteps: number

Defines the maximum steps to use with deterministic lock step mode

Optional powerPreferenceSearch playground for powerPreference

powerPreference: WebGLPowerPreference

Optional premultipliedAlphaSearch playground for premultipliedAlpha

premultipliedAlpha: boolean

Optional preserveDrawingBufferSearch playground for preserveDrawingBuffer

preserveDrawingBuffer: boolean

Optional stencilSearch playground for stencil

stencil: boolean

Optional timeStepSearch playground for timeStep

timeStep: number

Defines the seconds between each deterministic lock step

Optional useHighPrecisionFloatsSearch playground for useHighPrecisionFloats

useHighPrecisionFloats: boolean

Defines that engine should compile shaders with high precision floats (if supported). True by default

Optional useHighPrecisionMatrixSearch playground for useHighPrecisionMatrix

useHighPrecisionMatrix: boolean

Make the matrix computations to be performed in 64 bits instead of 32 bits. False by default

Optional xrCompatibleSearch playground for xrCompatible

xrCompatible: boolean

Make the canvas XR Compatible for XR sessions

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method