Monday, February 13, 2017

unity - What kind of shader is this?


Cube World uses a pretty good looking shader, I especially like the shading of the characters:


enter image description here


Is this soft shading? I'd like to achieve this effect in Unity 3D Free, but since the free version doesn't support dynamic shadows, guess I have to code it myself, so an article on this or the algorithm would be great.



Answer



I don't see any special shaders there, just some vertex colors that are generated with an ambient occlusion (or similar) calculation algorithm and perhaps some differently calculated vertex normals. The results remind me of a demo I've seen some time ago which simulated global illumination by "bending" vertex normals and generating occlusion values for vertices.


The only thing one might call a special shader could be a hemisphere/SH (spherical harmonics) light that appears to be used in there.



No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...