Example for parallax background with shader

Thanks to @Pkeod initial shader I put together a neat example for parallax scrolling background with shader and thanks to input from @Mathias_Westerdahl, the background doesn’t have to be a power of 2.
Get it HERE.

P.S. There’s plenty of comments for parallax layer script and I still don’t understand how to set up a camera (this one projects more than it should and the picture is vertically squeezed).

9 Likes

Good job!

2 Likes

Thank you
Created pull request with offset resetting
Big offset value caused artifacts on android :space_invader:

1 Like