Package com.jme3.scene.plugins.gltf
Class TextureTransformExtensionLoader
java.lang.Object
com.jme3.scene.plugins.gltf.TextureTransformExtensionLoader
- All Implemented Interfaces:
ExtensionLoader
Thread-safe extension loader for KHR_texture_transform.
It allows for UV coordinates to be scaled/rotated/translated
based on transformation properties from textures in the glTF model.
See spec at https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandleExtension
(GltfLoader loader, String parentName, com.google.gson.JsonElement parent, com.google.gson.JsonElement extension, Object input) Handles a glTF extension.
-
Constructor Details
-
TextureTransformExtensionLoader
public TextureTransformExtensionLoader()
-
-
Method Details
-
handleExtension
public Object handleExtension(GltfLoader loader, String parentName, com.google.gson.JsonElement parent, com.google.gson.JsonElement extension, Object input) throws IOException 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
- Throws:
IOException
- for various error conditions
-