vrdDisplacementTexture¶
-
class
vrdDisplacementTexture¶
(Inherits vrdTexture)
This class is used for all displacement texture properties.
To load an image for a displacement texture, use:
image = vrImageService.loadImage(filename, vrImageTypes.LoadType.Displacement)
# Set as displacement texture for a material
plastic = vrMaterialService.findMaterial("Plastic")
plastic.getDisplacementTexture().setImage(image)
plastic.getDisplacementTexture().setUseTexture(True)
plastic.getDisplacementTexture().setDisplacementHeight(10.0)
Summary¶
Functions¶
-
vrdDisplacementTexture.getDisplacementHeight()¶ Gets height.
Returns: Current used height Return type: float
-
vrdDisplacementTexture.getDisplacementOffset()¶ Gets offset.
Returns: Current used value for offset Return type: float
-
vrdDisplacementTexture.getDisplacementSilhouetteMode()¶ Gets silhouette mode.
Returns: Current used silhouette mode mode Return type: vrdDisplacementTexture.DisplacementSilhouetteMode
-
vrdDisplacementTexture.setDisplacementHeight(height)¶ Sets height.
Parameters: height (float) – New height
-
vrdDisplacementTexture.setDisplacementOffset(offset)¶ Sets offset.
Parameters: offset (float) – New value for offset
-
vrdDisplacementTexture.setDisplacementSilhouetteMode(mode)¶ Sets silhouette mode.
Parameters: mode (vrdDisplacementTexture.DisplacementSilhouetteMode) – New silhouette mode mode