Giant render texture scrolling starfield (Phaser 3)

10000 stars within 8000 × 6000px, visible portion drawn onto a 800 × 600px render texture.

Scroll with cursor keys.

How would I account for camera zoom?

Here is a zooming example. It uses a separate scene camera for the render texture starfield. Zoom with Q and E.

I couldn’t make rotation, scrolling, and zoom work together.

1 Like