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

Shaders not working in URP. #33

Open
peter5885 opened this issue Mar 23, 2021 · 6 comments
Open

Shaders not working in URP. #33

peter5885 opened this issue Mar 23, 2021 · 6 comments

Comments

@peter5885
Copy link

It seems like the shader for the outline is not working for URP. Version 10.3.2, Unity 2020.3.1f1

The gizmo seems to work well but I get the pink default material when selecting an object to transform. Any help would be appreciated.

image

@HiddenMonk
Copy link
Owner

I havent gotten into the new render stuff.
Maybe what this person did would fix the issue
#27 (comment)

@peter5885
Copy link
Author

Yeah, I look at the existing issues and tried what is suggested, doesn't work. I think it specifically the Outline shader as the Lines shader seems to work as expected. Thanks for getting back in touch and suggesting some work arounds. I'll keep trying and feedback if I find anything.

@sagarmicronixsystem
Copy link

Yeah, I look at the existing issues and tried what is suggested, doesn't work. I think it specifically the Outline shader as the Lines shader seems to work as expected. Thanks for getting back in touch and suggesting some work arounds. I'll keep trying and feedback if I find anything.

just change the tags of you subshader from Tags {"LightMode" = "Always" } to Tags {"LightMode" = "UniversalForward" }

@peter5885
Copy link
Author

@sagarmicronixsystem Awesome! Works perfectly, thank you very much!

@miccall
Copy link

miccall commented Jul 5, 2021

why gizmo seems to not work for me ? URP. Version 10.4.0

@nfynt
Copy link

nfynt commented Feb 26, 2023

After setting the "LightMode" to "UniversalForward", also make sure to enable the Post-Processing for your main camera. This was the reason I found that the gizmo was behaving wierdly at runtime.

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

5 participants