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