Hi! I am looking for a way to create shader which can make bright top polygons of model and dark sides,for imitation of lighting, for example in 3ds max i there is falloff map with type and direction . So is there in unity solution for similar effect?
Yep!
Oh, right, you probably want more than that. Um, the solution is to use a custom shader.
Wait, you’re still here?
Okay, so the 3ds Max “Towards / Away” is a dot product of the normal and a direction, scaled to a 0.0 to 1.0 range (it’s usually -1.0 to 1.0), and used to lerp between two colors.
That’s all relatively trivial stuff to do in a custom shader. However if you’re not familiar with writing HLSL shaders getting to the point where you can do that can be daunting. There aren’t any shaders built into Unity that can do this, and unless you’re using the LWRP or HDRP then there’s also no node based shader editor which can make shader writing a little easier for just those starting out.
There are some assets on the store that you might find useful, like this one:
https://assetstore.unity.com/packages/vfx/shaders/minimalist-free-lowpoly-flat-gradient-shader-96148
Otherwise, you’ll either need to learn to write shaders yourself, or you can buy Amplify Shader Editor and learn to use that.
Thanks for reply and solution!