matlab纹理映射之地球
程序员文章站
2023-12-27 14:17:21
...
%地球
cla reset;
load topo;
[x,y,z] = sphere(45);
s = surface(x,y,z,'facecolor','texturemap','cdata',topo);
set(s,'edgecolor','none','facealpha','texture','alphadata',topo);
set(s,'backfacelighting','unlit');
colormap(topomap1);
alpha('direct');
alphamap([.1;1])
axis off vis3d;
campos([2 13 10]);
camlight;
lighting gouraud;
t=1;
while 1
t=1;
rotate(s,[0.01 0 -1],1);
drawnow
end
推荐阅读