![]() | |
Volume |
public class VolumeMaterial : Material, ITransparentMaterial
The VolumeMaterial type exposes the following members.
Name | Description | |
---|---|---|
![]() | VolumeMaterial | Constructor |
Name | Description | |
---|---|---|
![]() | GradientFactor | Gets or sets a float value that is passed to the fragment shader where it is multiplied by the calculated gradient value (it represents how much the value from the 3D texture changes between neighbor voxels). When set to 0, then the gradient value is not calculated. This slightly improves the performance because fewer values are read from the 3D texture. Default value is 1f. |
![]() | HasTransparency | Gets a boolean that specifies if this material is semi-transparent and needs to be alpha blended with the scene. |
![]() | SlicesTexture3D | Gets or sets a GpuImage that represents a 3D texture (GpuImage's Depth is more than 1) with slice data values. |
![]() | TransferFunctionTexture | Gets or sets a GpuImage that represents a texture that is used to convert the slice values from the SlicesTexture3D to color (Color4) values. This texture can be one-dimensional (horizontal) or two-dimensional texture. In both cases the x position (u) represents the slice value. When using two-dimensional texture the y position (v) represent the gradient value (when GradientFactor > 0) or slice index (when GradientFactor is 0). |
![]() | ValueClipThreshold | Pixels with the value from the 3D texture below this value will be clipped (not rendered and their depth will not be written to depth buffer). When set to 0, then clipping is disabled. Default value is 0.01f. |
Name | Description | |
---|---|---|
![]() | OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be overriden and is called from InitializeSceneResources(Scene) method.
(Overrides MaterialOnInitializeSceneResources(Scene, VulkanDevice)) |
[Missing <remarks> documentation for "T:Ab4d.SharpEngine.Materials.VolumeMaterial"]