name | type | arguments | Default | description |
---|---|---|---|---|
antialias | boolean | <optional> | true |
When set to |
antialiasGL | boolean | <optional> | true |
Sets the |
desynchronized | boolean | <optional> | false |
When set to |
pixelArt | boolean | <optional> | false |
Sets |
roundPixels | boolean | <optional> | true |
Draw texture-based Game Objects at only whole-integer positions. Game Objects without textures, like Graphics, ignore this property. |
transparent | boolean | <optional> | false |
Whether 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. |
clearBeforeRender | boolean | <optional> | true |
Whether the game canvas will be cleared between each rendering frame. |
preserveDrawingBuffer | boolean | <optional> | false |
If the value is true the WebGL buffers will not be cleared and will preserve their values until cleared or overwritten by the author. |
premultipliedAlpha | boolean | <optional> | true |
In WebGL mode, the drawing buffer contains colors with pre-multiplied alpha. |
failIfMajorPerformanceCaveat | boolean | <optional> | false |
Let the browser abort creating a WebGL context if it judges performance would be unacceptable. |
powerPreference | string | <optional> | 'default' |
"high-performance", "low-power" or "default". A hint to the browser on how much device power the game might use. |
batchSize | number | <optional> | 4096 |
The default WebGL batch size. Represents the number of quads that can be added to a single batch. |
maxLights | number | <optional> | 10 |
The maximum number of lights allowed to be visible within range of a single Camera in the LightManager. |
maxTextures | number | <optional> | -1 |
When 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. |
mipmapFilter | string | <optional> | '' |
The 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'. |
pipeline | Phaser.Types.Core.PipelineConfig | <optional> |
The WebGL Pipeline configuration object. |
|
autoMobilePipeline | boolean | <optional> | true |
Automatically enable the Mobile Pipeline if iOS or Android detected? |
defaultPipeline | string | <optional> | 'MultiPipeline' |
The WebGL Pipeline that Game Objects will use by default. Set to 'MultiPipeline' as standard. |