- Home /
how to fix projector rays
Hello all, I'm trying to use a projector to highlight units. Everything seems to work fine except for one thing: the projector generates some rays in 4 directions like this:
What might be the reason for this? Thank you
Answer by Xarbrough · Aug 18, 2017 at 08:49 PM
Hard to tell by the image, but it looks like some texture artifact.
In any case, it might be, that the outer most pixel is bleeding over the edge and gets repeated. You can set the texture wrap mode to clamp. Maybe you even need to leave more space between the edge of the image and the actual pixels. If it's a sprite, you should set the type to texture.
Thank you, non-transparent pixels were right next to the margin of the image (the empty space was cropped), so when I left a couple of extra pixels margin, it looked perfect.
The texture wrap mode was already set to clamp and it wasn't a sprite, it was a cookie texture
Your answer
![](https://koobas.hobune.stream/wayback/20220612133037im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Modify Light Projector Shader to be Additive 0 Answers
Weird Lines When Using Projector Unity 2020.3 0 Answers
How to force the compilation of a shader in Unity? 5 Answers
Making projector-based selection circles work in air 0 Answers
Cubemap on Android 1 Answer