PhongMaterial

Overview

PhongMaterial is a class in Aspose.3D FOSS for Java. Inherits from: LambertMaterial.

Material for blinn-phong shading model.

This class provides 38 methods for working with PhongMaterial objects in Java programs. Available methods include: A3DObject, LambertMaterial, PhongMaterial, findProperty, getAmbientColor, getDiffuseColor, getEmissiveColor, getName, getProperties, getProperty, getReflectionColor, getReflectionFactor, and 22 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, ambientColor, and 11 more.

Properties

NameTypeAccessDescription
specularColorVector3Read/WriteGets or sets the specular color.
specularFactordoubleRead/WriteGets or sets the specular factor.
shininessdoubleRead/WriteGets or sets the shininess, this controls the specular highlight’s size.
reflectionColorVector3Read/WriteGets or sets the reflection color.
reflectionFactordoubleRead/WriteGets or sets the attenuation of the reflection color.
emissiveColorVector3Read/WriteGets or sets the emissive color.
ambientColorVector3Read/WriteGets or sets the ambient color.
diffuseColorVector3Read/WriteGets or sets the diffuse color.
transparentColorVector3Read/WriteGets or sets the transparent color.
transparencydoubleRead/WriteGets or sets the transparency factor.
MAP_SPECULARStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a specular texture mapping.
MAP_DIFFUSEStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a diffuse texture mapping.
MAP_EMISSIVEStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a emissive texture mapping.
MAP_AMBIENTStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a ambient texture mapping.
MAP_NORMALStringReadUsed in setTexture(java.lang.String, com.aspose.threed.TextureBase) to assign a normal texture mapping.
nameStringRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
PhongMaterial()Initializes a new instance of the PhongMaterial class.
PhongMaterial(name: String)Initializes a new instance of the PhongMaterial class.
getSpecularColor() → Vector3Gets or sets the specular color.
setSpecularColor(specularColor: Vector3)Sets the specular color value.
getSpecularFactor() → doubleGets or sets the specular factor.
setSpecularFactor(specularFactor: double)Sets the specular factor value.
getShininess() → doubleGets or sets the shininess, this controls the specular highlight’s size.
setShininess(shininess: double)Sets the shininess value.
getReflectionColor() → Vector3Gets or sets the reflection color.
setReflectionColor(reflectionColor: Vector3)Sets the reflection color value.
getReflectionFactor() → doubleGets or sets the attenuation of the reflection color.
setReflectionFactor(reflectionFactor: double)Sets the reflection factor value.
LambertMaterial()Initializes a new instance of the LambertMaterial class.
LambertMaterial(name: String)Initializes a new instance of the LambertMaterial class.
getEmissiveColor() → Vector3Gets or sets the emissive color.
setEmissiveColor(emissiveColor: Vector3)Sets the emissive color value.
getAmbientColor() → Vector3Gets or sets the ambient color.
setAmbientColor(ambientColor: Vector3)Sets the ambient color value.
getDiffuseColor() → Vector3Gets or sets the diffuse color.
setDiffuseColor(diffuseColor: Vector3)Gets or sets the shininess, this controls the specular highlight’s size. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess
getTransparentColor() → Vector3Gets or sets the transparent color.
setTransparentColor(transparentColor: Vector3)Sets the transparent color value.
getTransparency() → doubleGets or sets the transparency factor.
setTransparency(transparency: double)Sets the transparency value.
getTexture(slotName: String) → TextureBaseGets the texture from the specified slot, it can be material’s property name or shader’s parameter name.
setTexture(slotName: String, texture: TextureBase)Sets the texture to specified slot.
toString() → StringFormats object to string.
iterator() → Iterator<TextureSlot>Gets the enumerator to enumerate internal texture slots.
A3DObject()Calls A3DObject on this PhongMaterial instance.
A3DObject(name: String)Calls A3DObject(name) on this PhongMaterial instance.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyCalls findProperty(name) on this PhongMaterial instance.
getProperty(name: String) → ObjectGets or sets the specular color.
setProperty(name: String, value: Object)Sets the property value.
removeProperty(name: String) → booleanCalls removeProperty(name) on this PhongMaterial instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this PhongMaterial instance.

See Also

 English