Package com.jme3.scene.plugins.gltf
Class LightsPunctualExtensionLoader
java.lang.Object
com.jme3.scene.plugins.gltf.LightsPunctualExtensionLoader
- All Implemented Interfaces:
ExtensionLoader
Extension loader for KHR_lights_punctual extension which allows
for lights to be added to the node from the gltf model.
Supports directional, point, and spot lights.
Created by Trevor Flynn - 3/23/2021
-
Constructor Summary
-
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.
-
Constructor Details
-
LightsPunctualExtensionLoader
public LightsPunctualExtensionLoader()
-
-
Method Details
-
handleExtension
public Object handleExtension(GltfLoader loader, String parentName, com.jme3.plugins.json.JsonElement parent, com.jme3.plugins.json.JsonElement extension, Object input) Description copied from interface:ExtensionLoader
Handles a glTF extension.- Specified by:
handleExtension
in 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
-