summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/vertexshading.asy
blob: ea97b98daf3bfda5bfcdb93e50e97f0934195a97 (plain)
1
2
3
4
5
6
7
8
9
import three;

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}));