vrdVelvetMaterial

class vrdVelvetMaterial

(Inherits vrdBRDFMaterial)

This class is used to handle all velvet material properties.

Functions

vrdVelvetMaterial.getBumpTexture()

Gets access to all properties of vrdBumpTexture.

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

Gets the value for the appearance of the diffuse component.

Returns:Value for the appearance of the diffuse component.
Return type:float
vrdVelvetMaterial.getDiffuseColor()
Returns:Current diffuse reflection color
Return type:QVector3D
vrdVelvetMaterial.getDiffuseColorSpectrum()

Gets the diffuse color spectrum.

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

Gets access to all properties of vrdDisplacementTexture.

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

Gets the value for the glossy component.

Returns:Value for the glossy component
Return type:float
vrdVelvetMaterial.getGlossyColor()
Returns:Current glossy reflection color
Return type:QVector3D
vrdVelvetMaterial.getGlossyColorSpectrum()
Returns:The material’s color spectrum for glossy reflections
Return type:vrSpectrum
vrdVelvetMaterial.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
vrdVelvetMaterial.getIncandescence()

Gets access to all properties of vrdIncandescence.

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

Gets access to all properties of vrdSubsurfaceScattering.

Returns:An vrdSubsurfaceScattering object, to read and write access of alls properties.
Return type:vrdSubsurfaceScattering
vrdVelvetMaterial.getTextureSettings()

Gets access to all properties of vrdTextureSettings.

For vrdVelvetMaterial, the texture mapping type can only be changed for all textures at once through this object, and set to either vrTextureTypes.MappingType.UVMapping or vrTextureTypes.MappingType.TriplanarMapping.

For triplanar mapping, the triplanar settings from this vrdTextureSettings object are used. Repeat mode is to be set in the individual vrdTexture objects. Please note, the repeat, offset and rotate settings for UV mapping in the individual vrdTexture objects are applied in addition to the global triplanar settings.

For UV mapping, settings like repeat, offset, rotate need to be changed in the individual vrdTexture objects, e.g. in vrdVelvetMaterial.getDiffuseTexture().

Returns:An vrdTextureSettings object, to read and write access of all properties.
Return type:vrdTextureSettings
vrdVelvetMaterial.setDarkening(v)

Controls the appearance of the diffuse component. The default darkening value of 1.0 corresponds to a perfectly diffuse surface. Higher values than 1.0 darken the material and lower values brighten it up.

Parameters:v (float) – New value for the appearance of the diffuse component.
vrdVelvetMaterial.setDiffuseColor(value)

Sets the diffuse reflection color of the material. Diffuse reflections can be further controlled with the darkening value.

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

Sets the diffuse color spectrum.

Parameters:value (vrSpectrum) – New spectrum for diffuse color
vrdVelvetMaterial.setFalloff(v)

Controls the glossy component, which depends on the viewing angle and affecting the edges of the objects.

Parameters:v (float) – New value for the glossy component
vrdVelvetMaterial.setGlossyColor(value)

Sets the material’s color for glossy reflections. Glossy reflections can be further controlled with the falloff value.

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

Sets the material’s color spectrum for glossy reflections.

Parameters:value (vrSpectrum) – New color spectrum