Hello world. I want to create a small mech game. The pilot sits in the cockpit and can see the environment and UI via a screen.
To create this in unity I´m using 3 cameras:
- 1st camera renders only the inner cockpit
- 2nd camera renders only the environment -> output: render texture)
- 3rd camera renders only the UI (crosshair, speed, ammo, etc) -> output: render texture
So the two render textures are merged in a shader and finally the resulting texture is used for the screen in the cockpit.
Unfortunately it´s not really working. My current setup won´t render only the existing UI elements on a blank background (alpha = 0). So I can´t cutout the "UI texture" on the "environment texture" OR I just can´t blend them....
edit: I´m using dark/black UI elements. So I can´t use a solid black background in the "UI camera´s" background type as it would "ignore" my dark UI elements (although it would solve my problem in a certain way)
I´m really confused. I hope you get the problem and my goal.
Thanks for your time and help......
using:
Unity 6000.2.10f1 ; HDRP 17
(Nearly fresh project)