vrdVolumeMaterial¶
-
class
vrdVolumeMaterial¶
(Inherits vrdMaterial)
Base class for volume materials.
Summary¶
- Functions:
- getAbsorption() → QVector3D
- getAsymmetry() → float
- getColor() → QVector3D
- getDensity() → float
- getEnableSelfShadow() → bool
- getEnableVolumeShadow() → bool
- getQuality() → integer
- setAbsorption(absorption)
- setAsymmetry(asymmetry)
- setColor(color)
- setDensity(density)
- setEnableSelfShadow(enable)
- setEnableVolumeShadow(enable)
- setQuality(quality)
Functions¶
-
vrdVolumeMaterial.getAbsorption()¶ Gets the color of the remaining light after absorption by the volume.
Returns: Current abosrption Return type: QVector3D
-
vrdVolumeMaterial.getAsymmetry()¶ Gets the directional characteristics of scattering events.
Returns: Current asymmetry Return type: float
-
vrdVolumeMaterial.getColor()¶ Gets the color of the light scattered by the volume.
Returns: Current color Return type: QVector3D
-
vrdVolumeMaterial.getDensity()¶ Gets how far light travels through the volume before being scattered or absorbed.
Returns: Current density Return type: float
-
vrdVolumeMaterial.getEnableSelfShadow()¶ Gets whether the volume will shadow itself as well as other volumes.
Returns: Current self-shadow state Return type: bool
-
vrdVolumeMaterial.getEnableVolumeShadow()¶ Gets whether the volume will shadow geometries and the shadow plane.”));.
Returns: Current volume shadow setting Return type: bool
-
vrdVolumeMaterial.getQuality()¶ Gets how far light travels through the volume before being scattered or absorbed.
Returns: Current quality Return type: integer
-
vrdVolumeMaterial.setAbsorption(absorption)¶ Sets the color of the reamining light after absorption by the volume.
Parameters: absorption (QVector3D) –
-
vrdVolumeMaterial.setAsymmetry(asymmetry)¶ Sets the directional characteristics of scattering events.
Parameters: asymmetry (float) – New asymmetry
-
vrdVolumeMaterial.setColor(color)¶ Sets the color color the light scattered by the volume.
Parameters: color (QVector3D) – New color
-
vrdVolumeMaterial.setDensity(density)¶ Sets how far light travels through the volume before being scattered or absorbed.
Parameters: density (float) – Current density
-
vrdVolumeMaterial.setEnableSelfShadow(enable)¶ Sets whether the volume will shadow itself as well as other volumes.
Parameters: enable (bool) – New self-shadow state
-
vrdVolumeMaterial.setEnableVolumeShadow(enable)¶ Sets whether the volume will shadow geometries and the shadow plane.”));.
Parameters: enable (bool) – New volume shadow state
-
vrdVolumeMaterial.setQuality(quality)¶ Sets how many samples are taken along each view ray.
Values range from 1 to 8, with 1 producing maximum performance and 8 maximum quality.
Parameters: quality (integer) – New quality