PbrSpecularMaterial

PbrSpecularMaterial class

Material for physically based rendering based on diffuse color/specular/glossiness

Properties

NameDescription
MAP_SPECULAR_GLOSSINESSThe texture map for specular glossiness

Methods

constructor

NameDescription
constructor()Constructor of the PbrSpecularMaterial

Result:


getTransparency

NameDescription
getTransparency()Gets or sets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped. The transparency factor.

Result:


setTransparency

NameDescription
setTransparency(value)Gets or sets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped. The transparency factor.

Result:


getNormalTexture

NameDescription
getNormalTexture()Gets or sets the texture of normal mapping

Result:


setNormalTexture

NameDescription
setNormalTexture(value)Gets or sets the texture of normal mapping

Result:


getSpecularGlossinessTexture

NameDescription
getSpecularGlossinessTexture()Gets or sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.

Result:


setSpecularGlossinessTexture

NameDescription
setSpecularGlossinessTexture(value)Gets or sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.

Result:


getGlossinessFactor

NameDescription
getGlossinessFactor()Gets or sets the glossiness(smoothness) of the material, 1 means perfectly smooth and 0 means perfectly rough, default value is 1, range is [0, 1]

Result:


setGlossinessFactor

NameDescription
setGlossinessFactor(value)Gets or sets the glossiness(smoothness) of the material, 1 means perfectly smooth and 0 means perfectly rough, default value is 1, range is [0, 1]

Result:


getSpecular

NameDescription
getSpecular()Gets or sets the specular color of the material, default value is (1, 1, 1).

Result:


setSpecular

NameDescription
setSpecular(value)Gets or sets the specular color of the material, default value is (1, 1, 1).

Result:


getDiffuseTexture

NameDescription
getDiffuseTexture()Gets or sets the texture for diffuse

Result:


setDiffuseTexture

NameDescription
setDiffuseTexture(value)Gets or sets the texture for diffuse

Result:


getDiffuse

NameDescription
getDiffuse()Gets or sets the diffuse color of the material, default value is (1, 1, 1)

Result:


setDiffuse

NameDescription
setDiffuse(value)Gets or sets the diffuse color of the material, default value is (1, 1, 1)

Result:


getEmissiveTexture

NameDescription
getEmissiveTexture()Gets or sets the texture for emissive

Result:


setEmissiveTexture

NameDescription
setEmissiveTexture(value)Gets or sets the texture for emissive

Result:


getEmissiveColor

NameDescription
getEmissiveColor()Gets or sets the emissive color, default value is (0, 0, 0)

Result:


setEmissiveColor

NameDescription
setEmissiveColor(value)Gets or sets the emissive color, default value is (0, 0, 0)

Result:


getName

NameDescription
getName()Gets or sets the name. The name.

Result:


setName

NameDescription
setName(value)Gets or sets the name. The name.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


getTexture

NameDescription
getTexture(slotName)Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name

Parameters:

NameTypeDescription
slotNameStringSlot name.

Result: TextureBase


setTexture

NameDescription
setTexture(slotName, texture)Sets the texture to specified slot

Parameters:

NameTypeDescription
slotNameStringSlot name.
textureTextureBaseTexture.

Result: TextureBase


toString

NameDescription
toString()Formats object to string

Result: String


removeProperty

NameDescription
removeProperty(property)Removes a dynamic property.

Parameters:

NameTypeDescription
propertyPropertyWhich property to remove

Result: boolean


removeProperty

NameDescription
removeProperty(property)Remove the specified property identified by name

Parameters:

NameTypeDescription
propertStringnull

Result: boolean


getProperty

NameDescription
getProperty(property)Get the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name

Result: Object


setProperty

NameDescription
setProperty(property, value)Sets the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name
valueObjectThe value of the property

Result: Object


findProperty

NameDescription
findProperty(propertyName)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

NameTypeDescription
propertyNameStringProperty name.

Result: Property


iterator

NameDescription
iterator()Reserved for internal use.

Result: Property