Phaser API Documentation

  Version: 
<readonly> renderToTexture: boolean

Description:

A flag that indicates if this Shader has been set to render to a texture instead of the display list.

This property is true if you have called Shader.setRenderToTexture, otherwise it's false.

A Shader that is rendering to a texture does not appear on the display list.

Type:
boolean
Since: 3.19.0