- Home /
Sprite gets invisible after Flipping it in X-Axis
Hey guys. I'm currently trying to flip a sprite in x Axis. The Problem is that it gets invisible after flipping it.
I loaded a spritesheet texture and a appropriate normalmap spritesheet. The SpriteRenderer uses a Material with the standard shader provided by Unity. The Main Texture (Albedo)
the Normalmap:
The Animation works fine. The lighting too. But flipping the texture is not possible.
I hope someone had the same problem and solved it.
Thank you in advance for your answers.
Answer by Andreas Loew · Mar 10, 2016 at 01:32 PM
The problem is backface culling.
It's an optimization that avoids rendering the back side of 3d objects. This is determined by checking the triangle orientation.
If you simply flip the sprite the orientation changes and is considered the "backside" of the sprite and thus invisible.
You could
Check if you find a shader that does not implement culling
Change the shader to disable it
Add the mirrored animation
The simplest solution would be 3) but your sprite sheets already waste a lot of memory with all the transparency. You should optimize them.
Your answer
![](https://koobas.hobune.stream/wayback/20220612071153im_/https://answers.unity.com/themes/thub/images/avi.jpg)