Skip to main content
fixed typos
Source Link
Pikalek
  • 12.5k
  • 5
  • 45
  • 52

Why is part of my render texture see trough-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 trough-through. I need that object transparent in relation to the ball (object one) but I don't want my texture to be see trough-through.

This is the result I expect:

enter image description here

Why is part of my render texture see trough 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 trough. I need that object transparent in relation to the ball (object one) but I don't want my texture to be see trough.

This is the result I expect:

enter image description here

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

Source Link
Ivan
  • 349
  • 2
  • 16

Why is part of my render texture see trough 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 trough. I need that object transparent in relation to the ball (object one) but I don't want my texture to be see trough.

This is the result I expect:

enter image description here