Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3978

How can I move the position of a shader?

$
0
0

I ported a shader from Shadertoy but I'm stuck on how to move it around (right now it's at the bottom-left), does anyone know how it could be done?

https://www.pixiplayground.com/#/edit/LrGIwJd5GFFgZsTz2BvbB

I tried with quad.position.set(X, Y); but seems like that only crops it, it doesn't move it... Is there a function like .set(X, Y) for shaders where you can declare a specific position and the shader is placed there?


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>