vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
555 stars 92 forks source link

opacity doesn't work with -render=0 #278

Closed Akuli closed 2 years ago

Akuli commented 2 years ago

ubuntu 20.04

$ wget https://iweb.dl.sourceforge.net/project/asymptote/2.70/asymptote-2.70.x86_64.tgz
$ sudo tar -C / xf asymptote-2.70.x86_64.tgz 
$ sudo apt install libtirpc3 libcurl4
$ asy -f png -render=0 problem.asy

content of problem.asy:

import three;
unitsize(1.7cm);
currentprojection = perspective(camera=(5,-10,6), up=Z);
draw(surface(unitsquare), opacity(0.8));

result:

a

Akuli commented 2 years ago

duplicate of #276