[vtkusers] Set light Intensity

ameloush theryame at gmail.com
Fri Dec 11 05:59:04 EST 2015


You could try this :

  vtkSmartPointer<vtkLightCollection>  col =
vtkSmartPointer<vtkLightCollection>::New();

    col = ren->GetLights();
        int i=col->GetNumberOfItems();  // to be sure there is at list one
light
    light = (vtkLight*)col->GetItemAsObject(0);
    light->SetIntensity(10);



--
View this message in context: http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list