Click or drag to resize
Ab4d.SharpEngine logo

VolumeMaterialGradientFactor Property

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.

Namespace: Ab4d.SharpEngine.Materials
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public float GradientFactor { get; set; }

Property Value

Single
See Also