Computes sliced-based mean values by utilizing DVR alpha shaders (dvr_alpha_*). The result is stored in a single-channel texture.
Namespace: VideoDVRAssembly: VideoDVR (in VideoDVR.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Texture ComputeAlphaMean(
Texture tex,
Shader alphaShader,
Action<ShaderProgram> configureCallback
) |
Visual Basic |
---|
Public Shared Function ComputeAlphaMean ( _
tex As Texture, _
alphaShader As Shader, _
configureCallback As Action(Of ShaderProgram) _
) As Texture |
Visual C++ |
---|
public:
static Texture^ ComputeAlphaMean(
Texture^ tex,
Shader^ alphaShader,
Action<ShaderProgram^>^ configureCallback
) |
Parameters
- tex
- Type: Texture
The texture. Expected to be a 3D texture representing the volume.
- alphaShader
- Type: Shader
The DVR alpha shader, i.e. dvr.alpha.*.frag
- configureCallback
- Type: System..::..Action<(Of <(<'ShaderProgram>)>)>
Callback used to configure uniforms. The Volume and VolumeExtent uniforms are set automatically prior to calling the callback.
Return Value
A texture containing the results.
See Also