Represents the connection between the program and the shader. Holds every EffectParameter for the shader. More...
Public Member Functions | |
VolumeShader (Game _game, GraphicsDevice _device, Effect _effect) | |
Constructor. | |
void | SetEffectParameter (Matrix _worldViewProjection, Matrix _world) |
Passes Matrixes to the shader. | |
void | SetEffectParameter (Vector3 _cameraPosition) |
Passes camera position to the shader. | |
void | SetEffectParameter (Texture3D _volumeTexture, Vector3 _stepSize, int _iterations, int _side, Vector4 _scaleFactor, float _slice) |
Passes various parameters to the shader. | |
Public Attributes | |
EffectParameter | world |
EffectParameter | cameraPosition |
Properties | |
Texture3D | VolumeTexture [get, set] |
Texture3D for volume data. | |
Texture2D | FrontFacesTexture [get, set] |
Texture2D for FrontFaces. | |
Texture2D | BackFacesTexture [get, set] |
Texture2D for BackFaces. | |
Texture2D | TransferTexture [get, set] |
Texture2D for Transferfunction. | |
Texture2D | TransferTextureAlpha [get, set] |
Texture2D for Transferfunction (alpha values) |
Represents the connection between the program and the shader. Holds every EffectParameter for the shader.
Definition at line 16 of file VolumeShader.cs.
visLU.Effects.VolumeShader.VolumeShader | ( | Game | _game, |
GraphicsDevice | _device, | ||
Effect | _effect | ||
) |
Constructor.
_game | |
_device | GraphicsDevice |
_effect | Effect, loaded from file |
Definition at line 57 of file VolumeShader.cs.
void visLU.Effects.VolumeShader.SetEffectParameter | ( | Matrix | _worldViewProjection, |
Matrix | _world | ||
) |
Passes Matrixes to the shader.
_worldViewProjection | |
_world |
Definition at line 167 of file VolumeShader.cs.
void visLU.Effects.VolumeShader.SetEffectParameter | ( | Texture3D | _volumeTexture, |
Vector3 | _stepSize, | ||
int | _iterations, | ||
int | _side, | ||
Vector4 | _scaleFactor, | ||
float | _slice | ||
) |
Passes various parameters to the shader.
_volumeTexture | Texture3D, holds volume data |
_stepSize | ratio of the largest component(dimension of volume): max(sizeX, sizeY, sizeZ) |
_iterations | egals number of steps in max dimension of the volume |
_side | specifies view (3d, front, top or side) |
_scaleFactor | used to scale cube to volume dimensions |
_slice | current slice to be drawn (not used in 3D view) |
Definition at line 192 of file VolumeShader.cs.
void visLU.Effects.VolumeShader.SetEffectParameter | ( | Vector3 | _cameraPosition ) |
Passes camera position to the shader.
_cameraPosition |
Definition at line 177 of file VolumeShader.cs.
EffectParameter visLU.Effects.VolumeShader.cameraPosition |
Definition at line 24 of file VolumeShader.cs.
EffectParameter visLU.Effects.VolumeShader.world |
Definition at line 23 of file VolumeShader.cs.
Texture2D visLU.Effects.VolumeShader.BackFacesTexture [get, set] |
Texture2D for BackFaces.
Definition at line 135 of file VolumeShader.cs.
Texture2D visLU.Effects.VolumeShader.FrontFacesTexture [get, set] |
Texture2D for FrontFaces.
Definition at line 126 of file VolumeShader.cs.
Texture2D visLU.Effects.VolumeShader.TransferTexture [get, set] |
Texture2D for Transferfunction.
Definition at line 144 of file VolumeShader.cs.
Texture2D visLU.Effects.VolumeShader.TransferTextureAlpha [get, set] |
Texture2D for Transferfunction (alpha values)
Definition at line 153 of file VolumeShader.cs.
Texture3D visLU.Effects.VolumeShader.VolumeTexture [get, set] |
Texture3D for volume data.
Definition at line 117 of file VolumeShader.cs.