VMTK
GLSL::CastRegisterFS Class Reference

Public Member Functions

void main (void)
 Main function for volume ray-casting. More...
 

Public Attributes

in vec2 TexCoord
 
uniform sampler2D backface_fbo
 
uniform sampler2D frontface_fbo
 
uniform sampler3D ref_volumetexture
 
uniform sampler3D float_volumetexture
 
uniform sampler1D ref_transferfunction
 
uniform sampler1D float_transferfunction
 
uniform int height
 
uniform int width
 
uniform int depth
 
uniform int steps_mode
 
uniform float noise_threshold
 
uniform vec4 ref_phyDimensions
 
uniform vec4 float_phyDimensions
 
uniform mat4 inv_registration_matrix
 
uniform float blending_factor
 
out vec4 fColor
 

Detailed Description

Remarks
Fragment-Shader

Definition at line 2 of file castregister_with_planar_clipping.frag.

Member Function Documentation

◆ main()

void GLSL::CastRegisterFS::main ( void  )
inline

Main function for volume ray-casting.

Color values of several samples along the ray between the entry point stored in frontface_fbo (texture unit of RaytracedRenderer::m_pFrontSidesFBO) and the exit point stored in backface_fbo (texture unit of RaytracedRenderer::m_pBackSidesFBO) are computed. There are four modes to compose them: (0) only the first valid hit is considered; (2) only the sample with the highest intensity value is considered; (2) the colors are summed from front to back; (3) the colors are summed from back to front. In addition, the colors may be get only from the transfer function (shading disabled) or influenced by an illumination model (shading enabled).

Definition at line 44 of file castregister_with_planar_clipping.frag.

Member Data Documentation

◆ backface_fbo

uniform sampler2D GLSL::CastRegisterFS::backface_fbo

texture unit storing backface plane in the viewing direction

Definition at line 14 of file castregister_with_planar_clipping.frag.

◆ blending_factor

uniform float GLSL::CastRegisterFS::blending_factor

linear interpolation weight for reference

Definition at line 28 of file castregister_with_planar_clipping.frag.

◆ depth

uniform int GLSL::CastRegisterFS::depth

depth of the volume data

Definition at line 22 of file castregister_with_planar_clipping.frag.

◆ float_phyDimensions

uniform vec4 GLSL::CastRegisterFS::float_phyDimensions

scale factors for compensating the floating texture volume distortion

Definition at line 26 of file castregister_with_planar_clipping.frag.

◆ float_transferfunction

uniform sampler1D GLSL::CastRegisterFS::float_transferfunction

texture unit storing transfer function of floating volume data

Definition at line 19 of file castregister_with_planar_clipping.frag.

◆ float_volumetexture

uniform sampler3D GLSL::CastRegisterFS::float_volumetexture

texture unit storing floating volume data

Definition at line 17 of file castregister_with_planar_clipping.frag.

◆ frontface_fbo

uniform sampler2D GLSL::CastRegisterFS::frontface_fbo

texture unit storing frontplane plane in the viewing direction

Definition at line 15 of file castregister_with_planar_clipping.frag.

◆ height

uniform int GLSL::CastRegisterFS::height

height of the volume data

Definition at line 20 of file castregister_with_planar_clipping.frag.

◆ inv_registration_matrix

uniform mat4 GLSL::CastRegisterFS::inv_registration_matrix

inverse registration matrix

Definition at line 27 of file castregister_with_planar_clipping.frag.

◆ noise_threshold

uniform float GLSL::CastRegisterFS::noise_threshold

threshold for removing noise

Definition at line 24 of file castregister_with_planar_clipping.frag.

◆ ref_phyDimensions

uniform vec4 GLSL::CastRegisterFS::ref_phyDimensions

scale factors for compensating the reference texture volume distortion

Definition at line 25 of file castregister_with_planar_clipping.frag.

◆ ref_transferfunction

uniform sampler1D GLSL::CastRegisterFS::ref_transferfunction

texture unit storing transfer function of reference volume data

Definition at line 18 of file castregister_with_planar_clipping.frag.

◆ ref_volumetexture

uniform sampler3D GLSL::CastRegisterFS::ref_volumetexture

texture unit storing reference volume data

Definition at line 16 of file castregister_with_planar_clipping.frag.

◆ steps_mode

uniform int GLSL::CastRegisterFS::steps_mode

sampling resolution: high (1) or low (otherwise)

Definition at line 23 of file castregister_with_planar_clipping.frag.

◆ TexCoord

in vec2 GLSL::CastRegisterFS::TexCoord

interpolated texture coordinates (R,G,B,A) from raytrace.vs

Definition at line 13 of file castregister_with_planar_clipping.frag.

◆ width

uniform int GLSL::CastRegisterFS::width

width of the volume data

Definition at line 21 of file castregister_with_planar_clipping.frag.


The documentation for this class was generated from the following file: