Go to the documentation of this file.
25 #ifndef vtkOSPRayLightNode_h
26 #define vtkOSPRayLightNode_h
28 #include "vtkRenderingOSPRayModule.h"
31 #include "ospray/ospray.h"
51 virtual void Render(
bool prepass)
override;
97 OSPRenderer oRenderer,
108 static double LightScale;
links vtkRenderers to OSPRay
links vtkLights to OSPRay
a virtual light for 3D rendering
vtkViewNode specialized for vtkLights
static vtkInformationDoubleKey * RADIUS()
The radius setting, when > 0.0, produces soft shadows in the path tracer.
static void SetRadius(double, vtkLight *)
Convenience method to set/get RADIUS on a vtkLight.
static int GetIsAmbient(vtkLight *)
static double GetLightScale()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void SetLightScale(double s)
A global multiplier to all ospray lights.
static vtkInformationIntegerKey * IS_AMBIENT()
When present on light, the light acts as an ambient source.
a simple class to control print indentation
static void SetIsAmbient(int, vtkLight *)
Convenience method to set/get IS_AMBIENT on a vtkLight.
virtual void Render(bool prepass) override
Make ospray calls to render me.
static vtkOSPRayLightNode * New()
static OSPLight NewLight(vtkOSPRayRendererNode *orn, OSPRenderer oRenderer, const std::string &lightType)
Select the version-appropriate signature for ospNewLight.
static double GetRadius(vtkLight *)