Class GltfScene.MaterialInfo

java.lang.Object
com.codename1.gpu.GltfScene.MaterialInfo
Enclosing class:
GltfScene

public static final class GltfScene.MaterialInfo extends Object
The parts of a glTF material a Material can express.
  • Method Details

    • getMetallic

      public float getMetallic()
      The metallic factor, from 0 to 1; glTF's default is 1.
    • getRoughness

      public float getRoughness()
      The roughness factor, from 0 to 1; glTF's default is 1.
    • getEmissive

      public int getEmissive()
      The emissive factor as an opaque ARGB colour, black for none.
    • getName

      public String getName()
      The material's name, or an empty string.
    • getBaseColor

      public int getBaseColor()
      The base color factor as ARGB.
    • getImage

      public int getImage()
      The index of the base color image, or -1.
    • isDoubleSided

      public boolean isDoubleSided()
      True when back faces must not be culled.
    • isBlend

      public boolean isBlend()
      True when the material's alpha mode is BLEND.