Package com.jme3.scene.plugins.gltf
Class MaterialAdapter
java.lang.Object
com.jme3.scene.plugins.gltf.MaterialAdapter
- Direct Known Subclasses:
PBRMaterialAdapter
,UnlitMaterialAdapter
A MaterialAdapter allows to map a GLTF material to a JME material.
It maps each gltf parameter to its matching parameter in the JME material,
and allows for some conversion if the JME material model doesn't exactly match the gltf material model
Created by Nehon on 08/08/2017.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MatParam
adaptMatParam
(MatParam param) protected void
addParamMapping
(String gltfParamName, String jmeParamName) protected String
getJmeParamName
(String gltfParamName) protected Material
protected abstract String
Should return the material definition used by this material adapterprotected void
init
(AssetManager assetManager) void
-
Constructor Details
-
MaterialAdapter
public MaterialAdapter()
-
-
Method Details
-
getMaterialDefPath
Should return the material definition used by this material adapter- Returns:
- path to the material definition
-
adaptMatParam
-
init
-
getMaterial
-
setParam
-
addParamMapping
-
getJmeParamName
-