Full-featured glTF model renderer for Cleanroom.
The status of this mod is still considered as WIP - API breaking change or deprecation might happen in the future.
The documentation for how to use with this mod is TBD, please check out the example usage for now.
The example codes for rendering Block, Item, and Entity
- GLTF format
- GLB format
- UVs
- Normals
- Tangents1
- Vertex colors2
- Materials3
- Textures
- Multiple texture coordinates3
- Animations4
- Rig5
- Morph targets6
- Zero-scale node culling7
This mod support various optimization through 3 profiles of OpenGL availability. By default, it will automatically select for you.
| Profile | Vertex Array Object (VAO) |
Hardware Accelerated Skinning |
Hardware Accelerated Morphing |
Status | System Requirements |
|---|---|---|---|---|---|
Full |
✅ | ✅ | ✅ | ✅ Done | OpenGL 4.3 |
macOS_Legacy |
✅ | ✅ | ✅ | 🚧 WIP | OpenGL 2.1 + Extensions |
GL21_FBO |
❌ | ❌ | ❌ | ✅ Done | OpenGL 2.1 + Framebuffer Object |
- JglTF by javagl : https://github.com/javagl/JglTF
- Mikk Tangent Generator by jMonkeyEngine : https://github.com/jMonkeyEngine/jmonkeyengine
Footnotes
-
Only available for ShaderMod from OptiFine. ↩
-
Only
COLOR_0can be used, it is treated as vertex color ofbaseColor. ↩ -
Please see Supported glTF Material Property for more info. ↩ ↩2
-
Support every interpolation method. ↩
-
Support more than 4 bone per-vertex. ↩
-
Support every valid attribute, including
COLOR_nandTEXCOORD_n. ↩ -
Support both non-skinned mesh and skinned mesh. ↩