Class PbrMaterial

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

    public class PbrMaterial
    extends Material
    Material for physically based rendering based on albedo color/metallic/roughness
    • Constructor Detail

      • PbrMaterial

        public PbrMaterial()
        Construct a default PBR material instance
      • PbrMaterial

        public PbrMaterial​(java.awt.Color albedo)
        Construct a default PBR material with specified albedo color value.
        Parameters:
        albedo - The default albedo color value
    • 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
      • getSpecularTexture

        public TextureBase getSpecularTexture()
        Gets the texture for specular color
      • setSpecularTexture

        public void setSpecularTexture​(TextureBase value)
        Sets the texture for specular color
        Parameters:
        value - New value
      • getAlbedoTexture

        public TextureBase getAlbedoTexture()
        Gets the texture for albedo
      • setAlbedoTexture

        public void setAlbedoTexture​(TextureBase value)
        Sets the texture for albedo
        Parameters:
        value - New value
      • getAlbedo

        public Vector3 getAlbedo()
        Gets the base color of the material
      • setAlbedo

        public void setAlbedo​(Vector3 value)
        Sets the base color of the material
        Parameters:
        value - New value
      • getOcclusionTexture

        public TextureBase getOcclusionTexture()
        Gets the texture for ambient occlusion
      • setOcclusionTexture

        public void setOcclusionTexture​(TextureBase value)
        Sets the texture for ambient occlusion
        Parameters:
        value - New value
      • getOcclusionFactor

        public double getOcclusionFactor()
        Gets the factor of ambient occlusion
      • setOcclusionFactor

        public void setOcclusionFactor​(double value)
        Sets the factor of ambient occlusion
        Parameters:
        value - New value
      • getMetallicFactor

        public double getMetallicFactor()
        Gets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric.
      • setMetallicFactor

        public void setMetallicFactor​(double value)
        Sets the metalness of the material, value of 1 means the material is a metal and value of 0 means the material is a dielectric.
        Parameters:
        value - New value
      • getRoughnessFactor

        public double getRoughnessFactor()
        Gets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth
      • setRoughnessFactor

        public void setRoughnessFactor​(double value)
        Sets the roughness of the material, value of 1 means the material is completely rough and value of 0 means the material is completely smooth
        Parameters:
        value - New value
      • getMetallicRoughness

        public TextureBase getMetallicRoughness()
        Gets the texture for metallic(in R channel) and roughness(in G channel)
      • setMetallicRoughness

        public void setMetallicRoughness​(TextureBase value)
        Sets the texture for metallic(in R channel) and roughness(in G channel)
        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
      • setEmissiveColor

        public void setEmissiveColor​(Vector3 value)
        Sets the emissive color
        Parameters:
        value - New value