![关于渐近线梯度的问题](https://linux22.com/image/447657/%E5%85%B3%E4%BA%8E%E6%B8%90%E8%BF%91%E7%BA%BF%E6%A2%AF%E5%BA%A6%E7%9A%84%E9%97%AE%E9%A2%98.png)
下面的例子说明了 Asymptote 在 3D 模式下渲染 Gradient 时出现了问题(在 Acrobat Reader 的交互式查看模式下):
生成图片的完整.tex文件:
\documentclass{standalone}
\usepackage[inline]{asymptote}
\begin{document}
\begin{asy}
import solids;
import palette;
currentprojection = perspective(0,100,25);
currentlight=Viewport;
viewportmargin=(0.1cm,0.1cm);
unitsize(5cm);
triple pO=(0,0,0);
path3 gene=(-0.57,0,0)..(-0.3,0,0.3)..(-0.1,0,0.3)..(0.1,0,0.42)..(0.3,0,0.52)..(0.99,0,0);
triple point1=(0,0,0), point2=(0,1,0);
revolution sur=revolution(pO,gene,X,0,360);
surface sur=surface(sur);
sur.colors(palette(sur.map(xpart), Gradient(red,royalblue)));
draw(sur);
\end{asy}
\end{document}
请问我这是什么问题?您能就这个问题提供一些帮助吗?