vrdLineChromeMaterial

class vrdLineChromeMaterial

(Inherits vrdBRDFMaterial)

This class is used to handle all chrome material properties.

Functions

vrdLineChromeMaterial.getDisplacementTexture()

Gets access to all properties of vrdDisplacementTexture.

Returns:An vrdDisplacementTexture object, to read and write access of alls properties.
Return type:vrdDisplacementTexture
vrdLineChromeMaterial.getLineWidth()

Gets the thickness of the lines drawn.

Returns:The current used thickness of the lines drawn.
Return type:float
vrdLineChromeMaterial.getReflectionColor()

Get the currently used chrome reflection color.

Returns:The currently used chrome reflection color.
Return type:QVector3D
vrdLineChromeMaterial.getRoughness()
Returns:The current value of roughness for this material.
Return type:float
vrdLineChromeMaterial.getUseRoughness()

Gets if glossy reflections controlled by roughness value are enabled for this material.

Returns:The current enable or disable roughness state.
Return type:bool
vrdLineChromeMaterial.setLineWidth(width)

Sets the thickness of the lines drawn.

Parameters:width (float) – The new thickness of the lines drawn.
vrdLineChromeMaterial.setReflectionColor(color)

Sets the chrome reflection color. When the chrome reflection is colored, reflected objects are also colored.

Parameters:color (QVector3D) – New chrome reflection color.
vrdLineChromeMaterial.setRoughness(roughness)

Sets the roughness of the material. The higher the roughness value, the blurrier the reflection. Use Roughness must be enabled.

Parameters:roughness (float) – New value of roughness for this material.
vrdLineChromeMaterial.setUseRoughness(use)

Enable or disable the use glossy reflections controlled by roughness value for this material. When disabled, specular reflections are used.

Parameters:use (bool) – Set the new enable or disable state.