Xiexe / Xiexes-Unity-Shaders

A re-write and restructure of XSToon.
MIT License
295 stars 36 forks source link

seems to be linked to normal maps and how it reflects something, idk what that something is tho #30

Closed treeofdeath closed 4 years ago

treeofdeath commented 4 years ago

Desktop Screenshot 2020 10 12 - 18 50 25 87 Desktop Screenshot 2020 10 12 - 18 50 33 67 Desktop Screenshot 2020 10 12 - 18 50 37 63 Desktop Screenshot 2020 10 12 - 18 50 41 87 seems odd to me, it doesnt do it with every model i own but sometimes this sort of shadow rim-like thing happen. super spooky

treeofdeath commented 4 years ago

i have tried playing with every settings on it, lights in unity and etc. but it just doesnt want to give up

treeofdeath commented 4 years ago

happens after setting a shadow ramp, ill experiment a bit more

treeofdeath commented 4 years ago

gradient Desktop Screenshot 2020 10 12 - 19 05 47 06 fixed it via remaking a new gradient linear shadow ramp, ill close this and say im sorry for my own stoupidity, hope it can help anyone in the future who has this issue

Xiexe commented 4 years ago

The reason it fixed itself upon making a new ramp is because the script clamps the ramp. It sets the wrap mode to "none."

What you're seeing there is the ramp UV actually bleeding into a wrapped version of the ramp, so it goes from 0-1, and then bleeds over a bit back to 0.

The fix, for future reference, is just to set the wrap mode in the import settings of the texture.