glTF Renderer API
A native glTF 2.0 rendering API for Minecraft Forge 1.20.1, supporting animations, optimized triangle rendering, frustum culling, configurable render distances, compressed assets, Embeddium and Oculus.
介绍
glTF RENDERER API
Fast glTF rendering for Minecraft Forge 1.20.1
Bring glTF Models Into Minecraft
glTF Renderer API is a library for client-side rendering that enables Forge mods to load and show glTF 2.0 models within Minecraft with integrations for blocks, block entities, entities, items, armor, particles, and GUI previews.
The API accepts both .gltf and .glb files, including embedded resources, assets from external resource packs, materials, transparency, skeletal animations, skins, morph targets, multiple scenes, and GPU instancing.
Compressed AssetsSupport is provided for Draco and Meshopt compression as well as for KTX2/BasisU textures. KTX2 textures automatically choose an appropriate GPU format and include fallback options for unsupported hardware or failed transcoding. The native dependencies are bundled and isolated to reduce conflicts with other mods. |
Performance FocusedModels use reusable GPU buffers, compatible batch submission, model bounds, frustum culling, distance-based LOD selection, and transparent geometry sorting. Resource and decoded-buffer limits also guard the client against malformed or excessively large assets. |
Embeddium and Oculus Support
The renderer supports Embeddium and is compatible with Oculus/Iris shader and shadow passes, allowing models to take part in shader-pack lighting and shadows while remaining compatible when shaders are turned off.
Made for Mod Developers
The public API includes helpers for:
- Entities and block entities
- Static baked blocks and items
- Custom item renderers
- Armor layers
- Particles
- GUI-only model previews
- Animation and scene selection
- Frustum culling and LOD groups
- Batched model rendering
The public rendering API is on the client side and must only be used by client-only code.
Test Content
The mod includes a test model with a static glTF model to demonstrate that the renderer is functioning. These are testing examples and are not necessary when another mod uses the API.
Beta Release
This is the initial public beta. Bugs, unusual model behaviour, performance problems, and compatibility issues might still occur.
For help or bug reports, join the Uncool Labs Discord.
(also report bugs on github!)
常见问题
glTF Renderer API 支持哪些 Minecraft 版本?
glTF Renderer API 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
glTF Renderer API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
danialisntcool 的其他作品
查看全部 →Faction Friction
A standalone factions and war system. Players can create custom factions, claim land, and launch targeted sieges on enemy territory to capture chunks. Features a full rank hierarchy, diplomacy, and a custom UI.
ChaosZPack – AutoSetup
A mod that sets up Chaoszpack automatically in the background for you without doing anything, just select the profile and drop it!
DayLight Zombies
Spawns zombies around players during the day and makes zombies weaker in the day. Super performance friendly. Super configurable. Spiritual Successor to day zombies.
评论
登录后评论和评分