com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class PbrSpecularMaterial

  • All Implemented Interfaces:
    java.lang.Iterable<TextureSlot>


    public class PbrSpecularMaterial
    extends Material
    Material for physically based rendering based on diffuse color/specular/glossiness
    • Field Detail

      • MAP_SPECULAR_GLOSSINESS

        public static final java.lang.String MAP_SPECULAR_GLOSSINESS
        The texture map for specular glossiness
        See Also:
        Constant Field Values
    • Constructor Detail

    • Method Detail

      • getTransparency

        public double getTransparency()
        Gets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped.
      • setTransparency

        public void setTransparency(double value)
        Sets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped.
        Parameters:
        value - New value
      • getNormalTexture

        public TextureBase getNormalTexture()
        Gets the texture of normal mapping
      • setNormalTexture

        public void setNormalTexture(TextureBase value)
        Sets the texture of normal mapping
        Parameters:
        value - New value
      • getSpecularGlossinessTexture

        public TextureBase getSpecularGlossinessTexture()
        Gets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.
      • setSpecularGlossinessTexture

        public void setSpecularGlossinessTexture(TextureBase value)
        Sets the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.
        Parameters:
        value - New value
      • getGlossinessFactor

        public double getGlossinessFactor()
        Gets the glossiness(smoothness) of the material, 1 means perfectly smooth and 0 means perfectly rough, default value is 1, range is [0, 1]
      • setGlossinessFactor

        public void setGlossinessFactor(double value)
        Sets the glossiness(smoothness) of the material, 1 means perfectly smooth and 0 means perfectly rough, default value is 1, range is [0, 1]
        Parameters:
        value - New value
      • getSpecular

        public Vector3 getSpecular()
        Gets the specular color of the material, default value is (1, 1, 1).
      • setSpecular

        public void setSpecular(Vector3 value)
        Sets the specular color of the material, default value is (1, 1, 1).
        Parameters:
        value - New value
      • getDiffuseTexture

        public TextureBase getDiffuseTexture()
        Gets the texture for diffuse
      • setDiffuseTexture

        public void setDiffuseTexture(TextureBase value)
        Sets the texture for diffuse
        Parameters:
        value - New value
      • getDiffuse

        public Vector3 getDiffuse()
        Gets the diffuse color of the material, default value is (1, 1, 1)
      • setDiffuse

        public void setDiffuse(Vector3 value)
        Sets the diffuse color of the material, default value is (1, 1, 1)
        Parameters:
        value - New value
      • getEmissiveTexture

        public TextureBase getEmissiveTexture()
        Gets the texture for emissive
      • setEmissiveTexture

        public void setEmissiveTexture(TextureBase value)
        Sets the texture for emissive
        Parameters:
        value - New value
      • getEmissiveColor

        public Vector3 getEmissiveColor()
        Gets the emissive color, default value is (0, 0, 0)
      • setEmissiveColor

        public void setEmissiveColor(Vector3 value)
        Sets the emissive color, default value is (0, 0, 0)
        Parameters:
        value - New value