#I just fixed this same issue today mind

1 messages · Page 1 of 1 (latest)

magic drum
#

hello

strong adder
#

hello

#

ok so

#

there is a tutorial on youtube, which helps with recieving shadows on unlit shaders

#

✔️ Tested in 2020.3 & 2021.1

Do you have a material that doesn't look quite right in Unity's URP lit shader graph? Or would you like to experiment with stylized art styles with the convenience of the shader graph? In this tutorial, I show how to implement custom lighting, allowing you to solve both those problems. Afterwards, you could extend t...

▶ Play video
magic drum
#

ah okay ill take a look

#

thank you

strong adder
#

but if you don't want the headache

#

of going through the entire thing

#

ill just send you my material files

#

and you can slot in your image textures instead

magic drum
#

oh yeah if you wouldnt mind

strong adder
#

and tell you how to set it up

#

gimme a sec

magic drum
#

alright ty

strong adder
#

try adding this to your project, add the material to your grass object,
and send me ss of the shadergraph, ill tell you where to slot in the stuffs

#

The basic idea is that
You want to plug in your color / image texture or whatever it is, into this Shadow Catcher Node

#

before connecting to the Fragment's Base Color

magic drum
#

so put the unlit shadow catcher just before the final image goes into the base colour?

strong adder
#

yup

magic drum
#

alright 1 sec

#

that has done this

strong adder
#

can you screenshot your shadergraph?

#

and send here?

magic drum
#

thats all the colour stuff

#

the rest offscreen is all vertex displacement

strong adder
#

ah umm

#

can you cross check your graph inspector?

#

make sure precision is set to single, and the material is unlit

magic drum
strong adder
#

ok can you open the subshader?

magic drum
#

yeah

strong adder
#

can ss it?

#

and the node settings for the sub shader?

magic drum
strong adder
#

hmm

#

you are using URP?

magic drum
#

yeah i am

strong adder
#

try once with alpha set to 1?

magic drum
#

same thing

strong adder
#

huh..

#

gimme 1 sec

magic drum
#

okay np

strong adder
#

Can you crosscheck the URP settings?

#

which you are using?

magic drum
strong adder
#

try toggling off SSAO?

#

dang, this is strange

#

though ssao should not be causing an issue..

magic drum
#

yeah i tried that didnt change anything

#

it just disabled the ssao

strong adder
#

maybe there is some thing specific about my implementation then..

strong adder
magic drum
#

Yeah it is very strange

#

I'll watch the tutorial

#

Thank you very much for the help though

strong adder
#

my implementation worked off this video

#

dang dude, sorry I couldn't help much

#

Hope you figure out though

magic drum
#

Nah dw about it thank you

magic drum
#

and now it works

#

in a lit shader

strong adder
#

oh dang.

#

glad it worked out for ya

#

:D

magic drum
#

thanks for the help

#

much appreciated

strong adder
#

i'll keep this fix in mind too if I ever need it in the future