Class UnshadedMaterialFactory
java.lang.Object
com.jme3.scene.plugins.gltf.UnshadedMaterialFactory
- All Implemented Interfaces:
GltfMaterialFactory
This material factory creates jME3's standard "Unshaded" materials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(com.jme3.asset.AssetKey<?> assetKey, GltfMaterialData gltfMaterialData) Checks, if the factory is able to create a new material from the given material data.com.jme3.material.MaterialcreateMaterial(com.jme3.asset.AssetManager assetManager, com.jme3.asset.AssetKey<?> assetKey, GltfMaterialData gltfMaterialData) Creates a new material from the given material data.protected Stringprotected voidprotected void
-
Constructor Details
-
UnshadedMaterialFactory
public UnshadedMaterialFactory()
-
-
Method Details
-
accepts
Description copied from interface:GltfMaterialFactoryChecks, if the factory is able to create a new material from the given material data. If it accepts the material data, theGltfMaterialFactory.createMaterial(AssetManager, AssetKey, GltfMaterialData)method can be used to create a new material.- Specified by:
acceptsin interfaceGltfMaterialFactory- Parameters:
assetKey- TheAssetKeyused for loading the GLTF model.gltfMaterialData- TheGltfMaterialDatacontaining all available GLTF material data.- Returns:
- true if the factory is able to create a material from the given material data, otherwise false.
-
createMaterial
public com.jme3.material.Material createMaterial(com.jme3.asset.AssetManager assetManager, com.jme3.asset.AssetKey<?> assetKey, GltfMaterialData gltfMaterialData) Description copied from interface:GltfMaterialFactoryCreates a new material from the given material data.- Specified by:
createMaterialin interfaceGltfMaterialFactory- Parameters:
assetManager- TheAssetManagerinstance.assetKey- TheAssetKeyused for loading the GLTF model.gltfMaterialData- TheGltfMaterialDatacontaining all available GLTF material data.- Returns:
- The new created
Material.
-
getMaterialDefPath
-
setParam
-
setParam
-