MATLAB light material lighting

clf;
[X,Y,Z]=sphere(40);
colormap(jet)
subplot(1,2,1),surf(X,Y,Z),axis off square,shading interp
light('position',[0 -10 1.5],'style','infinite')

material shiny
subplot(1,2,2),surf(X,Y,Z,-Z),axis off square ,shading flat
light;
lighting flat
light('position',[-1,-1,-2],'color','y')
light('position',[-1,0.5,1],'style','local','color','w')
set(gcf,'Color','w')

 

相关文章:

  • 2022-12-23
  • 2021-05-19
  • 2021-05-03
  • 2021-10-25
  • 2022-12-23
  • 2021-12-26
  • 2022-01-16
猜你喜欢
  • 2022-12-23
  • 2021-07-06
  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案