parallax
Unlit, alpha-cut background band for 2D parallax. The quad rides with the camera and the image scrolls inside it, so each band appears at its own depth. Driven by the `twoDKit.parallax` module (which `twoDKit.Level2D` uses for each level's background); `Paint.material(folder, nam…
pixelParallax.parallax
Unlit, alpha-cut background band for 2D parallax. The quad rides with the camera and the image scrolls inside it, so each band appears at its own depth. Driven by the twoDKit.parallax module (which twoDKit.Level2D uses for each level's background); Paint.material(folder, name, texture, "parallax") writes a material on it.
Per-entity ShaderData lanes: lane0 = (offsetU, offsetV, scaleU, scaleV) maps the quad's uv onto the image (uv * scale + offset, wrapped horizontally); lane1.x > 0.5 stretches the top and bottom rows past the image (for a sky band), otherwise the band is empty above and below the image. Give the texture wrapU = repeat and filter = nearest.
Scoped to this part · feeds back into the world's score.