Represents the connection between the program and the shader. Holds every EffectParameter for the shader. More...
Public Member Functions | |
TFWeightsShader (GraphicsDevice _device, Effect _effect) | |
Constructor More... | |
void | SetEffectParameter (Matrix _worldViewProjection, Matrix _world) |
Passes Matrixes to the shader. More... | |
void | SetEffectParameter (Vector3 _cameraPosition) |
Passes camera position to the shader. More... | |
void | SetEffectParameter (float _currControlPoint, float _prevControlPoint, float _nextControlPoint) |
Passes the current control point to the shader. More... | |
void | SetEffectParameter (Texture2D _selectedPos) |
Passes the selected positions to the shader. More... | |
void | SetEffectParameter (Texture3D _volumeTexture, Vector3 _directLightPosition, Vector3 _stepSize, float _baseSampleDist, float _sampleDist, int _iterations, int _side, Vector4 _scaleFactor, Vector2 _texSize, float _slice) |
Passes various parameters to the shader. More... | |
Public Attributes | |
EffectParameter | world |
EffectParameter | cameraPosition |
Properties | |
Texture3D | VolumeTexture [get, set] |
Texture3D for volume data More... | |
Texture2D | FrontFacesTexture [get, set] |
Texture2D for FrontFaces More... | |
Texture2D | BackFacesTexture [get, set] |
Texture2D for BackFaces More... | |
Texture2D | TransferTexture [get, set] |
Texture2D for Transferfunction More... | |
Texture2D | TransferTextureAlpha [get, set] |
Texture2D for Transferfunction (alpha values) More... | |
Represents the connection between the program and the shader. Holds every EffectParameter for the shader.
Definition at line 18 of file TFWeightsShader.cs.
visLU.Effects.TFWeightsShader.TFWeightsShader | ( | GraphicsDevice | _device, |
Effect | _effect | ||
) |
Constructor
_game | |
_device | GraphicsDevice |
_effect | Effect, loaded from file |
Definition at line 65 of file TFWeightsShader.cs.
void visLU.Effects.TFWeightsShader.SetEffectParameter | ( | Matrix | _worldViewProjection, |
Matrix | _world | ||
) |
Passes Matrixes to the shader.
_worldViewProjection | |
_world |
Definition at line 198 of file TFWeightsShader.cs.
void visLU.Effects.TFWeightsShader.SetEffectParameter | ( | Vector3 | _cameraPosition) |
Passes camera position to the shader.
_cameraPosition |
Definition at line 208 of file TFWeightsShader.cs.
void visLU.Effects.TFWeightsShader.SetEffectParameter | ( | float | _currControlPoint, |
float | _prevControlPoint, | ||
float | _nextControlPoint | ||
) |
Passes the current control point to the shader.
_cameraPosition |
Definition at line 217 of file TFWeightsShader.cs.
void visLU.Effects.TFWeightsShader.SetEffectParameter | ( | Texture2D | _selectedPos) |
Passes the selected positions to the shader.
_cameraPosition |
Definition at line 228 of file TFWeightsShader.cs.
void visLU.Effects.TFWeightsShader.SetEffectParameter | ( | Texture3D | _volumeTexture, |
Vector3 | _directLightPosition, | ||
Vector3 | _stepSize, | ||
float | _baseSampleDist, | ||
float | _sampleDist, | ||
int | _iterations, | ||
int | _side, | ||
Vector4 | _scaleFactor, | ||
Vector2 | _texSize, | ||
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 243 of file TFWeightsShader.cs.
|
getset |
Texture2D for BackFaces
Definition at line 168 of file TFWeightsShader.cs.
|
getset |
Texture2D for FrontFaces
Definition at line 155 of file TFWeightsShader.cs.
|
getset |
Texture2D for Transferfunction
Definition at line 177 of file TFWeightsShader.cs.
|
getset |
Texture2D for Transferfunction (alpha values)
Definition at line 186 of file TFWeightsShader.cs.
|
getset |
Texture3D for volume data
Definition at line 146 of file TFWeightsShader.cs.