#how to make shadow to shader

1 messages · Page 1 of 1 (latest)

rotund kiln
#

I made a shader to animate the grass, but the grass does not give off a shadow, it looks very bright. There is grass on the left without a shader, I just applied a texture and selected renderer mode cutout.

humble geyser
rotund kiln
#

thx

rotund kiln
midnight cargo
# rotund kiln

Make sure the texture is set to wrap mode "Clamp" rather than repeat

midnight cargo
#

It's a setting on the texture asset

rotund kiln
rotund kiln
midnight cargo
#

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

rotund kiln
rotund kiln
humble geyser
uncut valley
#

in the graph settings as cyan showed there is receive and cast shadow, enable them

#

it has to be lit shader

rotund kiln
#

its completely transparent

#

i have video

uncut valley
#

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

rotund kiln
humble geyser
#

Still not an mp4

uncut valley
#

you place it as grass right not as tree, in my version it has to be tree

rotund kiln
#

but it doesnt look good

uncut valley
#

you can change a few things in the terrain settings, no idea what you mean with it doesn´t look good

humble geyser
# rotund kiln

What if you set the depth test to bigger/more/larger(don't know the exact naming)

humble geyser
rotund kiln
#

no(

humble geyser
humble geyser
rotund kiln
#

what is it

humble geyser
#

A tool for debugging rendering

rotund kiln
#

what should i do

#

idk

#

i jst copied my shader to unity 6

#

and now i can see it idk