Creates a renderer that renders a volume with a voxel alpha based on a hue range.
The mapping from hue to alpha is as follows: if hue lt hueRange[0] or gt hueRange[3], alpha = 0.
if hue between hueRange[1] and hueRange[2], alpha = 1. Otherwise linear interpolation.
Namespace: VideoDVRAssembly: VideoDVR (in VideoDVR.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static DVRRenderer RenderVolume(
Texture volume,
Vector4 hue,
float alphaMax
) |
Visual Basic |
---|
Public Shared Function RenderVolume ( _
volume As Texture, _
hue As Vector4, _
alphaMax As Single _
) As DVRRenderer |
Visual C++ |
---|
public:
static DVRRenderer^ RenderVolume(
Texture^ volume,
Vector4 hue,
float alphaMax
) |
Parameters
- volume
- Type: Texture
A 3D texture representing the volume. Must not be null.
- hue
- Type: Vector4
The hue range. Values must be ascending and between -Pi and Pi. If null, an initial range is used.
- alphaMax
- Type: System..::..Single
The maximum alpha value. Value must be in the range of [0,1].
Return Value
The renderer.
Exceptions
See Also