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

Issues in Virtual Reality #13

Open
alexis-dupuis opened this issue Jul 13, 2020 · 8 comments
Open

Issues in Virtual Reality #13

alexis-dupuis opened this issue Jul 13, 2020 · 8 comments

Comments

@alexis-dupuis
Copy link

Hi ColinLeug-NiloCat,

First of all thank you kindly for providing a solution for decal projectors in URP, as it's quite an important feature yet missing in forward renderers.

I've been putting a lot of work on a decal system using your shader, until I realized it doesn't work in VR. I saw people reporting this issue on another decal projector shader (now depreciated), and the author apparently managed to make it usable in VR.

Would you know if it's feasible with your shader too?

@ColinLeung-NiloCat
Copy link
Owner

ColinLeung-NiloCat commented Jul 14, 2020 via email

@RamonBeast
Copy link

RamonBeast commented Nov 12, 2020

It actually works on VR (Oculus Quest 2, Unity 2020.1.12f1, URP with Depth Texture activated) out of the box, at least for me. The oculus texture plastered on the wall is the decal from Colin's shader.

image

edit: though I noticed that the decal is not rendered every other frame while moving, only for one eye (right in my case), no idea why.

@mypaxa00
Copy link

Same problem for me, but it can be fixed in one step
ly73iTnDEc
Switch rendering mode to Multi Pass (Hope its not only oculus feature). But maybe you will have a decal moving delay in VR.

@RamonBeast
Copy link

Interesting as I'm using Multi Pass too (on the Oculus you can't do Single Pass right now) and I still can only see the decal from a single eye:

image

@ShaunElerySwanson
Copy link

In case anyone finds this in the future I found this option in Project Settings > Player > XR Settings > Stereo Rendering Mode

@timothy92
Copy link

Still experiencing this issue in 2022, anyone know any alternative solutions? I just need a drop shadow for the character in my 3D platformer but in the VR build it only renders in 1 eye

@alexis-dupuis
Copy link
Author

alexis-dupuis commented Aug 16, 2022 via email

@ariok
Copy link

ariok commented Apr 7, 2023

If you landed on this issue trying to have (default URP) decals working on Oculus Quest 2:

In URP Renderer settings I'm using:

  • Depth texture mode "Force Prepass"

And in the Decal feature :

  • Technique -> "Screen Space"

I hope this might help fixing the issue with this shader too.

(Testing it today with Unity 2021.3.12f it is working without any problem)

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

7 participants