Types.GameObjects.Shader

Phaser.Types.GameObjects.Shader

ShaderConfig

<static> ShaderConfig

name

type

optional

default

description

key

string | Phaser.Display.BaseShader

No

The key of the shader to use from the shader cache, or a BaseShader instance.

width

number

Yes

128

The width of the Game Object.

height

number

Yes

128

The height of the Game Object.

Type: object

Member of: Phaser.Types.GameObjects.Shader

Source: src/gameobjects/shader/typedefs/ShaderConfig.js#L1
Since: 3.50.0


Updated on