matlab纹理映射之地球

%地球
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

posted @ 2018-08-06 23:07  叨陪鲤  阅读(59)  评论(0编辑  收藏  举报