1 \section[Source lumineuse ponctuelle
]{\' Eclairage par une source lumineuse ponctuelle
}
3 Deux paramètres, l'un positionne la source, l'autre fixe l'intensité
6 \item \Cadre{[lightsrc=
20 30 50]} en coordonnées cartésiennes, ou
7 \Cadre{[lightsrc=viewpoint
]} pour faire coïncider la source lumineuse
9 \item \Cadre{[lightintensity=
2]} (valeur par défaut).
13 \setlength{\columnseprule}{1pt
}
16 \begin{pspicture
}(-
6,-
5)(
4,
5)
18 \psset{Decran=
1e3,viewpoint=
500 0 1000,lightsrc=viewpoint,mode=
4}
19 \psSolid[object=cube,RotZ=
30](
0,
2,
0)
20 \psSolid[object=cylindrecreux,RotX=
30,RotZ=-
30,fillcolor=cyan,incolor=red
](
4,-
3,
0)
27 \psSolid[object=cube,RotZ=
30](
0,
2,
0)
28 \psSolid[object=cylindrecreux,
30 fillcolor=cyan,incolor=red
](
4,-
3,
0)
34 \begin{pspicture
}(-
6,-
5)(
4,
5)
36 \psset{Decran=
30,viewpoint=
30 10 20,lightsrc=viewpoint,mode=
3}
37 \psSolid[object=cube,lightintensity=
3,RotX=
90,fillcolor=yellow
](
0,
3,
0)
38 \psSolid[object=cube,lightintensity=
1,RotX=
90,fillcolor=yellow
](
3,-
3,
0)
53 \textdbend{} Si l'option
\texttt{[lightsrc=
}\textsl{value1
}~
\textsl{value2
}~
\textsl{value3
}\texttt{]}
54 n'est pas spécifiée, l'objet est uniformément éclairé.
57 \begin{pspicture
}(-
6,-
4)(
6,
4)
60 \psSolid[object=datfile,file=tore1836,deactivatecolor
]
61 \axesIIID(
0,
4.5,
0)(
6,
6,
4)
65 \psSolid[r1=
3.5,r0=
1,object=tore,ngrid=
18 36,fillcolor=
{[rgb
]{.372 .62 .628}}]%