summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/vertexshading.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/examples/vertexshading.asy')
-rw-r--r--Build/source/utils/asymptote/examples/vertexshading.asy10
1 files changed, 10 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/vertexshading.asy b/Build/source/utils/asymptote/examples/vertexshading.asy
new file mode 100644
index 00000000000..284ca3230de
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/vertexshading.asy
@@ -0,0 +1,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}));