LambertMaterial

LambertMaterial

Overview

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

Material for lambert shading model.

This class provides 24 methods for working with LambertMaterial objects in Java programs. Available methods include: A3DObject, LambertMaterial, findProperty, getAmbientColor, getDiffuseColor, getEmissiveColor, getName, getProperties, getProperty, getTexture, getTransparency, getTransparentColor, and 11 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 6 more.

Properties

NameTypeAccessDescription
emissiveColorVector3ReadGets or sets the emissive color.
ambientColorVector3ReadGets or sets the ambient color.
diffuseColorVector3ReadGets or sets the diffuse color.
transparentColorVector3ReadGets or sets the transparent color.
transparencydoubleReadGets 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.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
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()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.

See Also

 English