OptionalantialiasOptionalantialiasSets the antialias property when the WebGL context is created. Setting this value does not impact any subsequent textures that are created, or the canvas style attributes.
OptionalautoIf iOS or Android detected, automatically restrict WebGL to use 1 texture per batch. This can help performance on some devices.
OptionalbatchThe default WebGL batch size. Represents the number of quads that can be added to a single batch.
OptionalclearWhether the game canvas will be cleared between each rendering frame.
OptionaldesynchronizedWhen set to true it will create a desynchronized context for both 2D and WebGL. See https://developers.google.com/web/updates/2019/05/desynchronized for details.
OptionalfailLet the browser abort creating a WebGL context if it judges performance would be unacceptable.
OptionalmaxThe maximum number of lights allowed to be visible within range of a single Camera in the LightManager.
OptionalmaxWhen in WebGL mode, this sets the maximum number of GPU Textures to use. The default, -1, will use all available units. The WebGL1 spec says all browsers should provide a minimum of 8.
OptionalmipmapThe mipmap magFilter to be used when creating WebGL textures. Don't set unless you wish to create mipmaps. Set to one of the following: 'NEAREST', 'LINEAR', 'NEAREST_MIPMAP_NEAREST', 'LINEAR_MIPMAP_NEAREST', 'NEAREST_MIPMAP_LINEAR' or 'LINEAR_MIPMAP_LINEAR'.
OptionalpathThreshold for combining points into a single path in the WebGL renderer for Graphics objects. This can be overridden at the Graphics object level.
OptionalpixelSets antialias to false and roundPixels to true. This is the best setting for pixel-art games.
Optionalpower"high-performance", "low-power" or "default". A hint to the browser on how much device power the game might use.
OptionalpremultipliedIn WebGL mode, the drawing buffer contains colors with pre-multiplied alpha.
OptionalpreserveIf the value is true the WebGL buffers will not be cleared and will preserve their values until cleared or overwritten by the author.
OptionalrenderA map of custom Render Nodes to be added to the WebGL Renderer. The values will be added to the RenderNodeManager, using the keys as the names.
OptionalroundDraw texture-based Game Objects at only whole-integer positions. Game Objects without textures, like Graphics, ignore this property.
OptionalselfOn textured objects with lighting, this enables self-shadowing based on the diffuse map.
OptionalskipAvert stuttering during shader compilation, by enabling parallel shader compilation, where supported. Objects which request a shader that is not yet ready will not be drawn. This prevents stutter, but may cause "pop-in" of objects unless you use a pre-touch strategy.
OptionalsmoothWebGL only. Sets antialias to true and pixelArt to false. Texture-based Game Objects use special shader setting that preserve blocky pixels, but smooth the edges between the pixels. This is only visible when objects are scaled up; otherwise, antialias is simpler.
OptionaltransparentWhether the game canvas will be transparent. Boolean that indicates if the canvas contains an alpha channel. If set to false, the browser now knows that the backdrop is always opaque, which can speed up drawing of transparent content and images.
When set to
true, WebGL uses linear interpolation to draw scaled or rotated textures, giving a smooth appearance. When set tofalse, WebGL uses nearest-neighbor interpolation, giving a crisper appearance.falsealso disables antialiasing of the game canvas itself, if the browser supports it, when the game canvas is scaled.