PhongMaterial

Overview

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

PhongMaterial.constructor creates a new PhongMaterial instance with the specified name.

This class declares 9 methods for PhongMaterial objects in TypeScript programs. Available methods include: constructor, findProperty, getProperty, getTexture, removeProperty, setProperty, setTexture, toString. Public members are accessible to any TypeScript application after installing the Aspose.3D FOSS for TypeScript package. Properties: MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR, ambientColor, and 11 more.

Properties

NameTypeAccessDescription
specularColorVector3 | nullRead/WriteGets the specular color.
specularFactornumberRead/WriteGets the specular factor.
shininessnumberRead/WriteGets the shininess.
reflectionColorVector3 | nullRead/WriteGets the reflection color.
reflectionFactornumberRead/WriteGets the reflection factor.
MAP_SPECULAR``Read/WriteGets or sets the map specular.
MAP_DIFFUSE``Read/WriteGets or sets the map diffuse.
MAP_EMISSIVE``Read/WriteGets or sets the map emissive.
MAP_AMBIENT``Read/WriteGets or sets the map ambient.
MAP_NORMAL``Read/WriteGets or sets the map normal.
emissiveColorVector3 | nullRead/WriteGets the emissive color.
ambientColorVector3 | nullRead/WriteGets the ambient color.
diffuseColorVector3 | nullRead/WriteGets the diffuse color.
transparentColorVector3 | nullRead/WriteGets the transparent color.
transparencynumberRead/WriteGets the transparency.
namestringRead/WriteGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
constructor(name: string)Creates a new PhongMaterial instance with the specified name
constructor(name: string | null)Calls constructor(name) on this PhongMaterial instance.
getTexture(_slotName: string)TextureBase | nullCalls getTexture(_slotName) on this PhongMaterial instance.
setTexture(_slotName: string, _texture: TextureBase)Sets the texture value.
findProperty(propertyName: string)Property | nullCalls findProperty(propertyName) on this PhongMaterial instance.
getProperty(property: string)anyCalls getProperty(property) on this PhongMaterial instance.
setProperty(property: string, value: any)Sets the property value.
removeProperty(property: string | Property)booleanCalls removeProperty(property) on this PhongMaterial instance.
toString()stringCalls toString on this PhongMaterial instance.

See Also

 English