Jump to content

porting shadertoy to pixi (and a texture mystery)


Recommended Posts


I've been porting this shadertoy shader to pixi js.

It's compiling and running well.

However, there seems to be a weird artifact in the rendered background and I'm guessing it's related to my poor knowledge of how pixi passes texture coordinates to the shader.

In my codepen here you can see my latest attempt.

The background image as seen here, renders as vertical strips in the pixi filter.

It appears as if the top row of pixels of the image is repeated vertically??

I feel like it's something simple that I'm overlooking but wonder if anyone might have any insight as to why the striping is happening?

Thank you to all the pixi / shader wizards here who might be able to please shed light on this.


ps -> i'm running pixi 6.5.8

Link to comment
Share on other sites

Exca, you are my new hero, that was exactly it. Wow, absolutely incredible. Thank you so much!!! I've gone ahead and updated the codepen to reflect this change, so that future viewers will see a functional version. You just made my day!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...