本文主要是介绍【VTK】light type,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
vtkLight的光照类型设置: virtual void SetLightType(int);
三类光照类型:
SceneLight
HeadLight (always located at the camera and is pointed at the camera’s focal point.)
CameraLight(A CameraLight is also attached to the camera, but is not necessarily located at the camera’s position.)
Headlight
vtkRenderer的render方法自动生成的光照类型:
SceneLight
vtkLight默认构造出来的光照类型:
使用例子:
vtkSmartPointer<vtkLight> light =vtkSmartPointer<vtkLight>::New();light->SetColor( 1, 1, 0 );cout << "lightType: " << light->GetLightType() << endl; // lig
这篇关于【VTK】light type的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!