Is "generateTexture" culled by the viewport / camera?

generateTexture takes additional arguments to determine the width and height of the texture. By default, it uses the size of the game canvas. This is necessary because graphics objects are just a sequence of commands with no intrinsic size.

Keep in mind that large textures may not be supported by all devices, especially when using the WebGL renderer. 4096 pixels is a decent limit to stick to. Do also note that a graphics object will almost certainly use less memory than a texture at the cost of being more expensive to draw.

1 Like