Package com.jme3.scene.plugins.gltf
Class PBRMaterialAdapter
java.lang.Object
com.jme3.scene.plugins.gltf.MaterialAdapter
com.jme3.scene.plugins.gltf.PBRMaterialAdapter
- Direct Known Subclasses:
PBREmissiveStrengthMaterialAdapter
,PBRMetalRoughMaterialAdapter
,PBRSpecGlossMaterialAdapter
Adapts GLTF PBR materials to JME PBR materials.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
The default alpha discard threshold for "MASK" blend mode. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MatParam
adaptMatParam
(MatParam param) protected String
Should return the material definition used by this material adapterprotected void
initDefaultMatParams
(Material material) Initializes material parameters to their default settings.Methods inherited from class com.jme3.scene.plugins.gltf.MaterialAdapter
addParamMapping, getJmeParamName, getMaterial, init, setParam
-
Field Details
-
MASK_ALPHA_DISCARD
public static final float MASK_ALPHA_DISCARDThe default alpha discard threshold for "MASK" blend mode.- See Also:
-
-
Constructor Details
-
PBRMaterialAdapter
public PBRMaterialAdapter()
-
-
Method Details
-
getMaterialDefPath
Description copied from class:MaterialAdapter
Should return the material definition used by this material adapter- Specified by:
getMaterialDefPath
in classMaterialAdapter
- Returns:
- path to the material definition
-
initDefaultMatParams
Description copied from class:MaterialAdapter
Initializes material parameters to their default settings.- Specified by:
initDefaultMatParams
in classMaterialAdapter
-
adaptMatParam
- Specified by:
adaptMatParam
in classMaterialAdapter
-