Jump to content

How to set wrapS/wrapT on a glTexture?


Recommended Posts

Hi there!


I'm trying to set the wrap mode on a gl texture for horizontal and vertical directions separately, one to wrap, the other to clamp. My research into the PIXI source has led me to believe that this should be possible to initially set up by specifying a textureData object within the sampler2d uniform containing the texture - but I can't seem to find where to do that and how... Also, looking at the WebGLRenderer's updateTexture code, it looks like the texture will only ever have both directions set to the same value, based on the _powerOf2 attribute of the baseTexture.... 


It certainly LOOKS like I would have to overwrite the standard WebGLRenderer code with my own version (that, for example, would look at another property I could add to the texture and set the texture wrap modes base on that). But I'd really rather not do that, if only to keep future updates as pain free as possible... 


Do you have an idea what to do?



Thank you!

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