shader#
Shader utilities function Module.
|
Compute shader for vector field. |
|
Shader for VectorFieldActor. |
|
Shader for VectorFieldActor. |
|
Shader for StreamlineActor. |
|
Shader for VectorFieldArrowActor. |
|
Compute shader for spherical harmonics glyph rendering. |
|
Initialize the line projection compute shader. |
|
Shader for Billboard actor. |
|
Shader for billboard-based sphere impostors. |
VectorFieldComputeShader#
- class fury.shader.VectorFieldComputeShader(wobject)[source]#
Bases:
BaseShaderCompute shader for vector field.
- Parameters:
wobject (VectorField) – The vector field object to be rendered.
- get_bindings(wobject, _shared, _scene)[source]#
Get the bindings for the vector field compute shader.
- Parameters:
wobject (VectorField) – The vector field object to be rendered.
_shared (dict) – Shared information for the shader.
_scene (fury.window.Scene) – The scene containing the object to be rendered.
- Returns:
A dictionary containing the bindings for the shader.
- Return type:
- get_code()[source]#
Get the WGSL code for the vector field compute shader.
- Returns:
The WGSL code as a string.
- Return type:
- get_pipeline_info(_wobject, _shared)[source]#
Get pipeline information for the vector field compute shader.
- Parameters:
_wobject (VectorField) – The vector field object to be rendered.
_shared (dict) – Shared information for the shader.
- Returns:
A dictionary containing pipeline information.
- Return type:
- get_render_info(wobject, _shared)[source]#
Get render information for the vector field compute shader.
- Parameters:
wobject (VectorField) – The vector field object to be rendered.
_shared (dict) – Shared information for the shader.
- Returns:
A dictionary containing the render information.
- Return type:
- type = 'compute'#
VectorFieldThinShader#
- class fury.shader.VectorFieldThinShader(wobject)[source]#
Bases:
ThinLineSegmentShaderShader for VectorFieldActor.
- Parameters:
wobject (VectorField) – The vector field object to be rendered.
VectorFieldShader#
- class fury.shader.VectorFieldShader(wobject)[source]#
Bases:
LineShaderShader for VectorFieldActor.
- Parameters:
wobject (VectorField) – The vector field object to be rendered.
StreamlinesShader#
VectorFieldArrowShader#
- class fury.shader.VectorFieldArrowShader(wobject)[source]#
Bases:
VectorFieldShaderShader for VectorFieldArrowActor.
- Parameters:
wobject (VectorField) – The vector field object to be rendered.
SphGlyphComputeShader#
- class fury.shader.SphGlyphComputeShader(wobject)[source]#
Bases:
BaseShaderCompute shader for spherical harmonics glyph rendering.
- Parameters:
wobject (SphGlyph) – The spherical glyph object to be rendered.
- get_bindings(wobject, _shared, _scene)[source]#
Get the bindings for the spherical harmonic glyph compute shader.
- Parameters:
wobject (SphGlyph) – The spherical glyph object to be rendered.
_shared (dict) – Shared information for the shader.
_scene (fury.window.Scene) – The scene containing the object to be rendered.
- Returns:
A dictionary containing the bindings for the shader.
- Return type:
- get_code()[source]#
Get the WGSL code for the spherical harmonic glyph compute shader.
- Returns:
The WGSL code as a string.
- Return type:
- get_pipeline_info(_wobject, _shared)[source]#
Get pipeline information for the spherical harmonic glyph compute shader.
- type = 'compute'#
LineProjectionComputeShader#
- class fury.shader.LineProjectionComputeShader(wobject)[source]#
Bases:
BaseShaderInitialize the line projection compute shader.
- Parameters:
wobject (LineProjection) – The line projection object to be rendered.
- get_bindings(wobject, _shared, _scene)[source]#
Get the bindings for the line projection compute shader.
- Parameters:
wobject (LineProjection) – The line projection object to be rendered.
_shared (dict) – Shared information for the shader.
_scene (fury.window.Scene) – The scene containing the object to be rendered.
- Returns:
A dictionary containing the bindings for the shader.
- Return type:
- get_code()[source]#
Get the WGSL code for the shader.
- Returns:
The WGSL code as a string.
- Return type:
- get_pipeline_info(_wobject, _shared)[source]#
Get pipeline information for the shader.
- Parameters:
_wobject (VectorField) – The vector field object to be rendered.
_shared (dict) – Shared information for the shader.
- Returns:
A dictionary containing pipeline information.
- Return type:
- get_render_info(wobject, _shared)[source]#
Get render information for the shader.
- Parameters:
wobject (VectorField) – The vector field object to be rendered.
_shared (dict) – Shared information for the shader.
- Returns:
A dictionary containing the render information.
- Return type:
- type = 'compute'#