I can't wrap my head around this
When my engine drew an entire layer at once, parallax was simple: auto offset = Camera() * parallaxStrength;, applied to the layer mesh when drawing. Now, it draws tiles at once, and I cannot wrap my head around how it should work.
The image shows the camera for the world, the tile grid conversion, and the "parallax" camera, the tiles the parallaxed layer should be reading. The problem is I can't seem to figure out the "parallax scrolling offset", I think it might be, otherwise the tiles just jump when the "parallax camera" changes to a new coord.
The data sent to the tile shader includes the actual "c wrld" of the tile (not affected by parallax), otherwise the tile wont show up on screen, and I don't know if that is also throwing off the math for this.