Hello, I followed the sample: UpdatingDecalsAndAreaLightTex for my implementation
After changing the texture file to "10points.png", I realized the texture is reversed in the sample.
How do I reverse the texture?
[Solved] Textures are reversed in Sample UpdatingDecalsAndAreaLightTex Topic is solved
-
- Halfling
- Posts: 78
- Joined: Wed Jan 25, 2023 9:04 am
- x 5
[Solved] Textures are reversed in Sample UpdatingDecalsAndAreaLightTex
Last edited by knn217 on Sat Jul 08, 2023 3:05 pm, edited 1 time in total.
-
- OGRE Team Member
- Posts: 5476
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1358
Re: Textures are reversed in Sample UpdatingDecalsAndAreaLightTex
Interesting that no one reported this bug earlier (we have at least 1 user thoroughly using this feature).
-
- Halfling
- Posts: 78
- Joined: Wed Jan 25, 2023 9:04 am
- x 5
Re: Textures are reversed in Sample UpdatingDecalsAndAreaLightTex
Thanks for the reply and the fix, I didn't know this was a bug.
I thought it can be changed in the createplane constructor somewhere like the upVector since it's more convenient.
So if I want a reversed texture, do I just create a reversed texture file like "10points_reversed.png" or something?
-
- Halfling
- Posts: 78
- Joined: Wed Jan 25, 2023 9:04 am
- x 5
Re: Textures are reversed in Sample UpdatingDecalsAndAreaLightTex
OH wait, I figured it out!
To get reversed texture, I need to reverse the Light's direction
Thanks for the fix tho