Skip to content

CleanroomMC/CRglTF

Repository files navigation

CRglTF

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.

Usages

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

Features

  • GLTF format
  • GLB format
  • UVs
  • Normals
  • Tangents1
  • Vertex colors2
  • Materials3
  • Textures
  • Multiple texture coordinates3
  • Animations4
  • Rig5
  • Morph targets6
  • Zero-scale node culling7

Optimization

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

Credit

Footnotes

  1. Only available for ShaderMod from OptiFine.

  2. Only COLOR_0 can be used, it is treated as vertex color of baseColor.

  3. Please see Supported glTF Material Property for more info. 2

  4. Support every interpolation method.

  5. Support more than 4 bone per-vertex.

  6. Support every valid attribute, including COLOR_n and TEXCOORD_n.

  7. Support both non-skinned mesh and skinned mesh.

About

glTF model renderer mod for Cleanroom

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages