• Unity
  • Depth Alpha Cutoff

  • Изменено
Related Discussions
...


I'm using Write to Depth, but when I am using a dark environment, I can see a blue line around my spine because the color of the Alpha Cutoff are blue, can I change that color to black? (The Image attached are with 0.0 Alpha Cutoff, just to see the color)
If I set the Alpha Cutoff to high, it start removing some shadows that I don't want to remove, but if I can set it to black I believe I can solve this problem.

I changed the export option but it didn't work. But I understand what is happening, the cutoff are cutting the image and the line I'm seeing in fact is the the color background from the camera.

What I am trying to achieve is put some image inside a 3D plane like the tires in the sand:

If there is any other way I'll be glad to know.

MichelVictor написал

I changed the export option but it didn't work. But I understand what is happening, the cutoff are cutting the image and the line I'm seeing in fact is the the color background from the camera.

This is a typical problem of alpha blending combined with ZWrite enabled and front-to-back render order. In order for proper blending to happen, you have to draw objects in back-to-front order. This is determined by the render queue, which is rendering opaque objects before transparent ones. So I assume that you are using one of the Spine/Sprite shaders and have set your Blend Mode to Opaque, please change that to Pre-Multiplied Alpha or Standard Alpha accordingly.