Phaser API Documentation

  Version: 
RenderTargetConfig
Properties:
name type arguments Default description
scale number <optional> 1

A value between 0 and 1. Controls the size of this Render Target in relation to the Renderer. A value of 1 matches it. 0.5 makes the Render Target half the size of the renderer, etc.

minFilter number <optional> 0

The minFilter mode of the texture. 0 is LINEAR, 1 is NEAREST.

autoClear boolean <optional> true

Controls if this Render Target is automatically cleared (via gl.COLOR_BUFFER_BIT) during the bind.

width number <optional>

The width of the Render Target. This is optional. If given it overrides the scale property.

height number <optional> width

The height of the Render Target. This is optional. If not given, it will be set to the same as the width value.

Type:
object