Jump to content

WebGL Filters - rendering offset


carterza
 Share

Recommended Posts

I'm using Phaser in a project I'm working on and I've stumbled across a problem which requires a greater understanding of pixijs to solve.

 

I have a 1920 x 1200 sprite which I've applied a filter to of equal dimensions. When I move my camera in phaser I would expect the visible region of the filter to change - but it does not. It stays constant.

 

I can tell my camera is moving simply by adding another sprite to the stage.

 

I thought the Sprite's filterArea property might control this but I don't believe it does. I'm guessing I need to either play with some values in my shader (even though that doesn't seem right to me) or muck with something inside - PIXI.WebGLFilterManager

 

Can anyone point me in the right direction?

 

Thanks,

 

-Zach

 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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