Skip to main content
2 of 2
fixed typos
Pikalek
  • 12.5k
  • 5
  • 45
  • 52

Why is part of my render texture see-through in Unity?

I have a camera that is looking at an object with render texture output and I use that render texture on raw image in UI.

Object itself has 2 parts:

  1. the ball
  2. kind of a semi transparent mask.

enter image description here

And this is an output: enter image description here

The star is there just for the reference. Problem is that part behind the second object is also transparent on render texture like it is see-through. I need that object transparent in relation to the ball (object one) but I don't want my texture to be see-through.

This is the result I expect:

enter image description here

Ivan
  • 349
  • 2
  • 16