Class PBRSpecGlossExtensionLoader
java.lang.Object
com.jme3.scene.plugins.gltf.PBRSpecGlossExtensionLoader
- All Implemented Interfaces:
ExtensionLoader
Material adapter for PBR Specular Glossiness pipeline
Created by Nehon on 20/08/2017.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleExtension(GltfLoader loader, String parentName, com.jme3.plugins.json.JsonElement parent, com.jme3.plugins.json.JsonElement extension, Object input) Handles a glTF extension.
-
Field Details
-
EXTENSION_NAME
- See Also:
-
DIFFUSE_COLOR_PARAM
- See Also:
-
SPECULAR_COLOR_PARAM
- See Also:
-
GLOSSINESS_FACTOR_PARAM
- See Also:
-
DIFFUSE_TEXTURE_PARAM
- See Also:
-
SPECULAR_GLOSSINESS_TEXTURE_PARAM
- See Also:
-
-
Constructor Details
-
PBRSpecGlossExtensionLoader
public PBRSpecGlossExtensionLoader()
-
-
Method Details
-
handleExtension
public Object handleExtension(GltfLoader loader, String parentName, com.jme3.plugins.json.JsonElement parent, com.jme3.plugins.json.JsonElement extension, Object input) throws IOException Description copied from interface:ExtensionLoaderHandles a glTF extension.- Specified by:
handleExtensionin interfaceExtensionLoader- Parameters:
loader- the GltfLoader with all the data structuresparentName- the name of the element being readparent- the element being readextension- the content of the extension found in the element being readinput- an object containing already loaded data from the element, probably a JME object- Returns:
- An object of the same type as input, containing the data from the input object and the eventual additional data read from the extension
- Throws:
IOException- for various error conditions
-