Jump to content

  • Log In with Google      Sign In   
  • Create Account


Creating a mosaic texture, doing offsetted lookups in WebGL/OpenGL shader.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 lallish   Members   -  Reputation: 154

Like
0Likes
Like

Posted 14 December 2013 - 09:17 AM

I have a block of geometry that will need a mosaic texture. Parts of the geometry will need to offset their UV coordinates to fetch the correct texture within this mosaic. I'm reusing the geometry so it will need to change texture and offsets a couple of times during runtime.

 

How is this best solved?

Send texture through uniform, and offset attributes to each vertex?

Or change UV-coordinates on the geometry accordingly?

Does it matter if the mosaic texture is 1d or 2d?

 

Thanks


Edited by lallish, 14 December 2013 - 09:18 AM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS