Package com.aspose.threed
Class PhongMaterial
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Material
-
- com.aspose.threed.LambertMaterial
-
- com.aspose.threed.PhongMaterial
-
- All Implemented Interfaces:
INamedObject
,java.lang.Iterable<TextureSlot>
public class PhongMaterial extends LambertMaterial
Material for blinn-phong shading model.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.Material
MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description PhongMaterial()
Initializes a new instance of thePhongMaterial
class.PhongMaterial(java.lang.String name)
Initializes a new instance of thePhongMaterial
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3
getReflectionColor()
Gets the reflection color.double
getReflectionFactor()
Gets the attenuation of the reflection color.double
getShininess()
Gets the shininess, this controls the specular highlight's size.Vector3
getSpecularColor()
Gets the specular color.double
getSpecularFactor()
Gets the specular factor.void
setReflectionColor(Vector3 value)
Sets the reflection color.void
setReflectionFactor(double value)
Sets the attenuation of the reflection color.void
setShininess(double value)
Sets the shininess, this controls the specular highlight's size.void
setSpecularColor(Vector3 value)
Sets the specular color.void
setSpecularFactor(double value)
Sets the specular factor.-
Methods inherited from class com.aspose.threed.LambertMaterial
getAmbientColor, getDiffuseColor, getEmissiveColor, getTransparency, getTransparentColor, setAmbientColor, setDiffuseColor, setEmissiveColor, setTransparency, setTransparentColor
-
Methods inherited from class com.aspose.threed.Material
getTexture, iterator, setTexture, toString
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
PhongMaterial
public PhongMaterial()
Initializes a new instance of thePhongMaterial
class.
-
PhongMaterial
public PhongMaterial(java.lang.String name)
Initializes a new instance of thePhongMaterial
class.- Parameters:
name
- Name
-
-
Method Detail
-
getSpecularColor
public Vector3 getSpecularColor()
Gets the specular color.
-
setSpecularColor
public void setSpecularColor(Vector3 value)
Sets the specular color.- Parameters:
value
- New value
-
getSpecularFactor
public double getSpecularFactor()
Gets the specular factor. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess
-
setSpecularFactor
public void setSpecularFactor(double value)
Sets the specular factor. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess- Parameters:
value
- New value
-
getShininess
public double getShininess()
Gets the shininess, this controls the specular highlight's size. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess
-
setShininess
public void setShininess(double value)
Sets the shininess, this controls the specular highlight's size. The formula of specular: SpecularColor * SpecularFactor * (N dot H) ^ Shininess- Parameters:
value
- New value
-
getReflectionColor
public Vector3 getReflectionColor()
Gets the reflection color.
-
setReflectionColor
public void setReflectionColor(Vector3 value)
Sets the reflection color.- Parameters:
value
- New value
-
getReflectionFactor
public double getReflectionFactor()
Gets the attenuation of the reflection color.
-
setReflectionFactor
public void setReflectionFactor(double value)
Sets the attenuation of the reflection color.- Parameters:
value
- New value
-
-