vrdPlasticMaterial

class vrdPlasticMaterial

(Inherits vrdBRDFMaterial)

This class is used to handle all plastic material properties.

Functions

vrdPlasticMaterial.getBumpTexture()

Gets access to all properties of the bump texture.

Returns:An vrdBumpTexture object, to read and write access of alls properties.
Return type:vrdBumpTexture
vrdPlasticMaterial.getClearcoat()

Gets access to all properties of vrdClearcoat.

Returns:An vrdClearcoat object, to read and write access of alls properties.
Return type:vrdClearcoat
vrdPlasticMaterial.getDiffuseColor()
Returns:Current diffuse reflection color
Return type:QVector3D
vrdPlasticMaterial.getDiffuseColorSpectrum()

Gets the diffuse color spectrum.

Returns:The current used spectrum for diffuse color
Return type:vrSpectrum
vrdPlasticMaterial.getDiffuseTexture()

Gets access to all properties of the diffuse texture.

Returns:An vrdTexture object, to read and write access of alls properties.
Return type:vrdTexture
vrdPlasticMaterial.getDisplacementTexture()

Gets access to all properties of the displacement texture.

Returns:An vrdDisplacementTexture object, to read and write access of alls properties.
Return type:vrdDisplacementTexture
vrdPlasticMaterial.getGlossyColor()
Returns:Current glossy reflection color
Return type:QVector3D
vrdPlasticMaterial.getGlossyColorSpectrum()
Returns:The material’s color spectrum for glossy reflections
Return type:vrSpectrum
vrdPlasticMaterial.getGlossyTexture()

Gets access to all properties of the glossy texture.

Returns:An vrdTexture object, to read and write access of alls properties.
Return type:vrdTexture
vrdPlasticMaterial.getIncandescence()

Gets access to all properties of vrdIncandescence.

Returns:An vrdIncandescence object, to read and write access of alls properties.
Return type:vrdIncandescence
vrdPlasticMaterial.getReflectivity()
Returns:Current intensity of the reflection on the surface.
Return type:float
vrdPlasticMaterial.getRoughness()
Returns:The current roughness value of this material.
Return type:float
vrdPlasticMaterial.getRoughnessTexture()

Gets access to all properties of the roughness texture.

Returns:An vrdRoughnessTexture object, to read and write access of alls properties.
Return type:vrdRoughnessTexture
vrdPlasticMaterial.getSubsurfaceScattering()

Gets access to all properties of vrdSubsurfaceScattering.

Returns:An vrdSubsurfaceScattering object, to read and write access of alls properties.
Return type:vrdSubsurfaceScattering
vrdPlasticMaterial.setDiffuseColor(value)

Sets the diffuse reflection color of the material.

Parameters:value (QVector3D) – New diffuse color.
vrdPlasticMaterial.setDiffuseColorSpectrum(value)

Sets the diffuse color spectrum.

Parameters:value (vrSpectrum) – New spectrum for diffuse color
vrdPlasticMaterial.setGlossyColor(value)

Sets the glossy reflection color of the material.

Parameters:value (QVector3D) – New glossy reflection color
vrdPlasticMaterial.setGlossyColorSpectrum(value)

Sets the material’s color spectrum for glossy reflections.

Parameters:value (vrSpectrum) – New color spectrum
vrdPlasticMaterial.setReflectivity(v)

Controls the intensity of the reflection on the surface. The higher the value, the more the influence from the environment and objects around.

Parameters:v (float) – New intensity of the reflection on the surface.
vrdPlasticMaterial.setRoughness(roughness)

Controls the sharpness of the glossy reflections. The higher the value, the rougher the microscopic structure of the surface and more diffuse the reflections. The lower the value, the glossier the material.

Parameters:roughness (float) – New roughness value for this material.