Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on overlay cameras - in game view (works in scene view) #27

Open
wheee opened this issue Mar 7, 2021 · 2 comments
Open

Comments

@wheee
Copy link

wheee commented Mar 7, 2021

Steps to reproduce:

  1. Setup cubes + decal textures as per instructions in the "default layer"
  2. Have a main camera with a culling mask that doesn't include the "default layer"
  3. Setup an overlay camera with a culling mask with the "default layer"
  4. Add overlay camera to main camera
  5. Press play and note that while the Scene view shows the decal, the game view does not.

Change the overlay camera to be a base camera, and the decal shows up.

On 2020.2.7f1 (also older versions... I actually upgraded to the latest 2020.2 version to see if it would help)

@kingbaggot
Copy link

Yeah I have this too - did you find a fix ?
I have to use the overlay camera as my scene is depthMatted masked in front of the main camera in a Vuforia build, so I don't have an alternative.

@AlexandreImperator
Copy link

Hi @wheee @kingbaggot
Make sure to tick "Depth Texture" in the URP Universal Render Pipeline Asset:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants