Below is an example of what the AO shader looks like
And what the shader block looks like
bright 1 0 1
dark 0 0 0
To access, simply set the shader type to 'amb-occ2' , or 'amb-occ', they both make the same shader.
'bright' adjusts the colour. In the code above, it would create a magenta object, like the floor in the example picture.
'dark' is the shadow colour. In this case, black.
'samples' control the quality of AO. As you can see, the ground is quite smooth at 200 samples. But the sphere on top is quite grainy with samples at 2.
'dist' is best decribed with pictures. The floor in the above picture, 'dist' is at 2. Lets drop it down to 1 and see what happens...
Now look at the shadows on the ground. The shadows aren't as spread out as in the first image. This isn't all that noticeable, so lets put 'dist' down farther. Lets try .4.
Now the effect is more noticable.
0 'dist' doesnt remove the shadow, but this:
As you might have guessed, this shader looks like Blenders AO. Although this AO shader has many advantages. For one, its a shader. That means you can apply it to only a single object, rather than a lighting setup that effects everything. Another thing is the abillity to choose the colours. Especially the shadow colours. As the picture below shows, by setting the 'dark' to a brighter colour that 'bright', you get some interesting effects.
All I did, was switch 'bright' with 'dark'. Although, if you wanted to, you could have a lime green shadow, with a red colour.
< Back Next >