summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/vertexshading.asy
blob: 284ca3230de9bd6bfcd507bbd715756f2b1a6729 (plain)
1
2
3
4
5
6
7
8
9
10
import three;
//settings.prc=false;

size(200);

currentprojection=perspective(4,5,5);

draw(surface(unitcircle3,new pen[] {red,green,blue,white}));
draw(surface(shift(Z)*unitsquare3,
	     new pen[] {red,green+opacity(0.5),blue,black}));