Graphics Programs Reference
In-Depth Information
cols = [1 1 1
110
0 1 0];
for i = 1:length(x)
light('pos',[x(i),y(i),z(i)],...
'color',cols(i,:))
end
pltlight
This is the flat lighting method. Other ways of rendering light are
lighting gouraud
lighting phong
The default is lighting flat .
Continuing the last example, we illustrate some different material
properties:
material metal
material shiny
Search WWH ::




Custom Search