vrdPhongMaterial

class vrdPhongMaterial

(Inherits vrdBRDFMaterial)

This class is used to handle all phong material properties.

Functions

vrdPhongMaterial.getBumpTexture()

Gets access to all properties of vrdBumpTexture.

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

gets the value of the roughness of the material’s diffuse component.

Returns:Current used value of the roughness of the material’s diffuse component.
Return type:float
vrdPhongMaterial.getDiffuseColor()
Returns:Current diffuse reflection color
Return type:QVector3D
vrdPhongMaterial.getDiffuseColorSpectrum()

Gets the diffuse color spectrum.

Returns:The current used spectrum for diffuse color
Return type:vrSpectrum
vrdPhongMaterial.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
vrdPhongMaterial.getDisplacementTexture()

Gets access to all properties of vrdDisplacementTexture.

Returns:An vrdDisplacementTexture object, to read and write access of alls properties.
Return type:vrdDisplacementTexture
vrdPhongMaterial.getGlossyColor()
Returns:Current glossy reflection color
Return type:QVector3D
vrdPhongMaterial.getGlossyColorSpectrum()
Returns:The material’s color spectrum for glossy reflections
Return type:vrSpectrum
vrdPhongMaterial.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
vrdPhongMaterial.getIncandescence()

Gets access to all properties of vrdIncandescence.

Returns:An vrdIncandescence object, to read and write access of alls properties.
Return type:vrdIncandescence
vrdPhongMaterial.getRoughness()
Returns:The current value of roughness for this material.
Return type:float
vrdPhongMaterial.getRoughnessTexture()

Gets access to all properties of vrdRoughnessTexture.

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

Gets access to all properties of vrdSubsurfaceScattering.

Returns:An vrdSubsurfaceScattering object, to read and write access of alls properties.
Return type:vrdSubsurfaceScattering
vrdPhongMaterial.setDiffuseBackscattering(v)

Defines the roughness of the material’s diffuse component. A value of 0.0 means smooth (Lambertian surface). A value of 1.0 means rough (for example, concrete).

Parameters:v (float) – New value of the roughness of the material’s diffuse component.
vrdPhongMaterial.setDiffuseColor(value)

Sets the diffuse reflection color of the material.

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

Sets the diffuse color spectrum.

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

Sets the glossy reflection color of the material.

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

Sets the material’s color spectrum for glossy reflections.

Parameters:value (vrSpectrum) – New color spectrum
vrdPhongMaterial.setRoughness(roughness)

Controls the sharpness of the glossy reflections. The higher the value, the rougher the microscopic structure on top of the surface and the more diffuse the reflections.

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