Vertex Based Ambient Occlusion

Vertex based ambient occlusion

While prototyping games I want to spend most of my time working on the gameplay, so being able to produce a nice looking environment as fast as possible is very important.

This little script calculates the Ambient Occlusion for every vertex on an object and saves it in the vertex colors.