Commit e14de6cd authored by Carson Brownlee's avatar Carson Brownlee

added volume anisotropy

parent 52c06b7c
......@@ -3245,6 +3245,28 @@ int vtkPVRenderView::GetSamplesPerPixel()
#endif
}
//----------------------------------------------------------------------------
void vtkPVRenderView::SetVolumeAnisotropy(double v)
{
#if VTK_MODULE_ENABLE_VTK_RenderingRayTracing
vtkRenderer* ren = this->GetRenderer();
vtkOSPRayRendererNode::SetVolumeAnisotropy(v, ren);
#else
(void)v;
#endif
}
//----------------------------------------------------------------------------
double vtkPVRenderView::GetVolumeAnisotropy()
{
#if VTK_MODULE_ENABLE_VTK_RenderingRayTracing
vtkRenderer* ren = this->GetRenderer();
return vtkOSPRayRendererNode::GetVolumeAnisotropy(ren);
#else
return 0.0f;
#endif
}
//----------------------------------------------------------------------------
void vtkPVRenderView::SetMaxFrames(int v)
{
......
......@@ -855,6 +855,13 @@ public:
int GetRouletteDepth();
//@}
//@{
/**
* Set the path tracers volume anisotropy
*/
void SetVolumeAnisotropy(double);
double GetVolumeAnisotropy();
//@}
//@{
/**
* Set the number of primary rays that OSPRay shoots per pixel.
*/
......
......@@ -2749,6 +2749,25 @@
values="1" />
</Hints>
</IntVectorProperty>
<DoubleVectorProperty
name="VolumeAnisotropy"
command="SetVolumeAnisotropy"
default_values="0.0"
animateable="0"
number_of_elements="1">
<DoubleRangeDomain
min="-1.0"
name="1.0"/>
<Documentation>Volume anisotropy of the phase function in
the path tracer.</Documentation>
<Hints>
<PropertyWidgetDecorator type="OSPRayHidingDecorator" />
<PropertyWidgetDecorator type="GenericDecorator"
mode="visibility"
property="EnableOSPRay"
values="1" />
</Hints>
</DoubleVectorProperty>
<IntVectorProperty
name="MaxFrames"
label="Progressive Passes"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment