#how to make shadow to shader
1 messages · Page 1 of 1 (latest)
The material type is set to unit, so it's not gonna receive or cast shadows.
thx
where can i do that
and mb u know how to remove this thing
Make sure the texture is set to wrap mode "Clamp" rather than repeat
how
It's a setting on the texture asset
Click on texture asset in project window, in inspector find "Wrap Mode"
https://docs.unity3d.com/Manual/class-TextureImporter-type-and-shape.html
thx its help
mb you know why my grass havent shadows
Might be a "Cast Shadows" option in the graph settings
But as dlich mentioned if you want it to recieve shadows you want the shader to be Lit instead of Unlit
when i did it lit it disappeared
when i change it on lit my grass on terrain becomes completely transparent
That's not enough info to say anything. Take screenshot of what it looks like, of its setup, of a frame debugger maybe.
in the graph settings as cyan showed there is receive and cast shadow, enable them
it has to be lit shader
yeah now i have shodows but when i place grass on terrain i cant see it
its completely transparent
i have video
use mp4 so we can see it here instead of downloading
if you place the grass it has to be trees not grass on the terrain
Still not an mp4
you place it as grass right not as tree, in my version it has to be tree
but it doesnt look good
you can change a few things in the terrain settings, no idea what you mean with it doesn´t look good
What if you set the depth test to bigger/more/larger(don't know the exact naming)
greater?
Yes
no(
Should look the same as placing as a separate object.
Then I'd check the frame debugger.
what is it
A tool for debugging rendering