0
To nie jest błąd

Normal Dir. Perturbed not working

johan h 9 lat temu Ostatnio zmodyfikowane przez Freya Holmér (Developer) 9 lat temu 5
So when I check the checkbox in Normal Dir. Perturbed i get this error.

Shader error in 'Shader Forge/test_shader': undeclared identifier 'normalDirection' at line 105 (on d3d11)
Compiling Vertex program with SHADOWS_DEPTH LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF

I have tried the shader in all the light modes but can't get it to work.
To nie jest błąd
You can't plug a perturbed normal into the vertex offset or outline width input, which I'm guessing you did :)
This is what i tried.




You can't use it in the normal slot either - perturbed means *after* whatever you have in the normal slot is applied.
gotcha, thanks.