- Home /
2D Texture with shadow square border
Hello unity community, this is my first question here.. i've started to work recently on a simple game in Unity 3D while using Orthello 2D framwork (free).
My problem is that a "shadow" appear on some border of my texture... i have tryed with PNG or PSD image with Alpha channel and the transparent is working, but i can't find around the forum a solution for this:
This is my sprite image, as u see there's no shadow or nothing "wrong"(for me)...
I see it even in play mode.
I've tryed to change the Shader, but it will still come out... i've made all the image PSD from PNG, but the effect is the same.. i realy don't know what else to do since i'm new!
Does anybody know how to solve it or have more information / method to understand from where this problem come from?
Best regards, Lyuke.
Are you setting the background to transparent / alpha 0?
Photoshop, the background layer needs to be transparent if it is not.
If what you're calling the shadow is what I think it is, then you definitely missed it, I can see it in the picture as black. Third tile on first row, look at top right corner, it's a black edge of the shape.
If you mean the little shadow around the ladder, I have no idea.
Answer by OllyNicholson · Jul 17, 2013 at 03:29 PM
If you set your shader to Transparent/Cutout/Diffuse in the inspector for your material (or any of the other Cutout shaders) you can set an Alpha cutoff - which trims the alpha edges to remove border pixels.
Your answer
![](https://koobas.hobune.stream/wayback/20220613110040im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D Animation does not start 1 Answer
Making an array for Texture2D?? 2 Answers
Border creation algorithm 1 Answer
What is the best way of creating a modular texture? 0 Answers
How can I draw a part of a texture on a another texture with transparency? 2 Answers