com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class PhongMaterial



  • public class PhongMaterial
    extends LambertMaterial
    Material for blinn-phong shading model.
    • Constructor Detail

      • PhongMaterial

        public PhongMaterial()
        Initializes a new instance of the PhongMaterial class.
      • PhongMaterial

        public PhongMaterial(String name)
        Initializes a new instance of the PhongMaterial 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