Interface EngineOptions
Hierarchy
-
WebGLContextAttributes
- EngineOptions
Index
Properties
- adapt
ToDevice Ratio - alpha
- antialias
- audio
Engine - auto
Enable WebVR - depth
- desynchronized
- deterministic
Lockstep - disable
WebGL2 Support - do
Not Handle Context Lost - do
Not Handle Touch Action - fail
IfMajor Performance Caveat - limit
Device Ratio - lockstep
Max Steps - power
Preference - premultiplied
Alpha - preserve
Drawing Buffer - stencil
- time
Step - use
High Precision Floats - use
High Precision Matrix - xr
Compatible
Properties
Optional adapt ToDevice RatioSearch playground for adaptToDeviceRatio
Defines whether to adapt to the device's viewport characteristics (default: false)
Optional alphaSearch playground for alpha
Optional antialiasSearch playground for antialias
Optional audio EngineSearch playground for audioEngine
Defines if webaudio should be initialized as well
Optional auto Enable WebVRSearch playground for autoEnableWebVR
Defines if webvr should be enabled automatically
Optional depthSearch playground for depth
Optional desynchronizedSearch playground for desynchronized
Optional deterministic LockstepSearch playground for deterministicLockstep
Defines if animations should run using a deterministic lock step
Optional disable WebGL2 SupportSearch playground for disableWebGL2Support
Defines if webgl2 should be turned off even if supported
Optional do Not Handle Context LostSearch playground for doNotHandleContextLost
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 do Not Handle Touch ActionSearch playground for doNotHandleTouchAction
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 fail IfMajor Performance CaveatSearch playground for failIfMajorPerformanceCaveat
Will prevent the system from falling back to software implementation if a hardware device cannot be created
Optional limit Device RatioSearch playground for limitDeviceRatio
Defines if the engine should no exceed a specified device ratio
Optional lockstep Max StepsSearch playground for lockstepMaxSteps
Defines the maximum steps to use with deterministic lock step mode
Optional power PreferenceSearch playground for powerPreference
Optional premultiplied AlphaSearch playground for premultipliedAlpha
Optional preserve Drawing BufferSearch playground for preserveDrawingBuffer
Optional stencilSearch playground for stencil
Optional time StepSearch playground for timeStep
Defines the seconds between each deterministic lock step
Optional use High Precision FloatsSearch playground for useHighPrecisionFloats
Defines that engine should compile shaders with high precision floats (if supported). True by default
Optional use High Precision MatrixSearch playground for useHighPrecisionMatrix
Make the matrix computations to be performed in 64 bits instead of 32 bits. False by default
Optional xr CompatibleSearch playground for xrCompatible
Make the canvas XR Compatible for XR sessions
Interface defining initialization parameters for Engine class