Graphics Reference
In-Depth Information
Our clown could use a ball, so let's create one for him. Different shaders are used for the sphere (Figure 5-28 ).
>> subplot(3,1,1)
sphere(16)
axis square
shading flat
title('Soft shading')
subplot(3,1,2)
sphere(16)
axis square
shading faceted
title(' Normal shading')
subplot(3,1,3)
sphere(16)
axis square
shading interp
title('Dense shading')
Figure 5-28.
Search WWH ::




Custom Search