Jump to content

Looking for filter matrices


Recommended Posts

As the title says, I need the world and model matrix for my filter. What happens, as far as I can tell, is that no matter where I am in the game-world, the shader will always be at the center of the screen, it doesn't care about the game world. What I need is for it to be relative to the sprite it is actually being applied on. Is this built in, or do I need to set them using my own uniforms, and if so, can I get matrices from sprites?


This is really annoying me as my filters doesn't work well when the game-world is being moved, scaled and rotated.

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