summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/vertexshading.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/vertexshading.asy5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy b/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
index a5555d66f70..fd5e9b2df84 100644
--- a/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
@@ -4,9 +4,12 @@ size(200);
currentprojection=perspective(4,5,5);
+//draw(shift(2Z)*surface(O--X--Y--cycle),blue);
+
draw(surface(unitcircle3,new pen[] {red,green,blue,black}));
draw(surface(shift(Z)*unitsquare3,
- new pen[] {red,green+opacity(0.5),blue,black}));
+ new pen[] {red,green+opacity(0.5),blue,black}),
+ prc() ? nolight : currentlight);
draw(surface(shift(X)*((0,0,0)..controls (1,0,0) and (2,0,0)..(3,0,0)..
controls (2.5,sqrt(3)/2,0) and (2,sqrt(3),0)..
(1.5,3*sqrt(3)/2,0)..