Class PBRMaterialAdapter

java.lang.Object
com.jme3.scene.plugins.gltf.MaterialAdapter
com.jme3.scene.plugins.gltf.PBRMaterialAdapter
Direct Known Subclasses:
PBREmissiveStrengthMaterialAdapter, PBRMetalRoughMaterialAdapter, PBRSpecGlossMaterialAdapter

public abstract class PBRMaterialAdapter extends MaterialAdapter
Adapts GLTF PBR materials to JME PBR materials.
Author:
Nehon
  • Field Details

    • MASK_ALPHA_DISCARD

      public static final float MASK_ALPHA_DISCARD
      The default alpha discard threshold for "MASK" blend mode.
      See Also:
  • Constructor Details

    • PBRMaterialAdapter

      public PBRMaterialAdapter()
  • Method Details

    • getMaterialDefPath

      protected String getMaterialDefPath()
      Description copied from class: MaterialAdapter
      Should return the material definition used by this material adapter
      Specified by:
      getMaterialDefPath in class MaterialAdapter
      Returns:
      path to the material definition
    • initDefaultMatParams

      protected void initDefaultMatParams(com.jme3.material.Material material)
      Description copied from class: MaterialAdapter
      Initializes material parameters to their default settings.
      Specified by:
      initDefaultMatParams in class MaterialAdapter
    • adaptMatParam

      protected com.jme3.material.MatParam adaptMatParam(com.jme3.material.MatParam param)
      Specified by:
      adaptMatParam in class MaterialAdapter