Sign in to follow this  
Followers 0
Danicco

Mirror Texture

2 posts in this topic

What is the best/good way to deal with mirrored textures?

 

Most questions I've found about it suggest to either invert the texture pixels before uploading to the card, or invert the UV coordinates of it.

 

The problem with inverting the UV coordinates (the way I'm tempted to do) is that I would need to create the VBO for UVs x 4 for all textures I'm going to use to be able to adjust for: normal, vertical mirrored, horizontal mirrored, vertical and horizontal mirrored. (I can use the same VBO but it's still UVs count x 4)

 

At first I thought I could just invert the order I draw the vertices of my quad but it didn't work, is there an elegant way to deal with this?

0

Share this post


Link to post
Share on other sites

In most cases it's best to invert the texture pixels when loading. That way everything else stays consistent.

 

Or save your textures the way you want them in the first place...

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0