Skip to content

Commit 1d62e7a

Browse files
committed
Implement KHR_meshopt_compression extension
1 parent 4a1578b commit 1d62e7a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ KHR_materials_unlit | ✅ Complete
8383
KHR_materials_variants | ✅ Complete
8484
KHR_materials_volume | ✅ Partial <sup>2</sup>
8585
KHR_mesh_quantization | ✅ Complete
86+
KHR_meshopt_compression | ✅ Complete
8687
KHR_texture_transform | ✅ Complete
8788

8889
<sup>\[1\]</sup> Spotlight cone falloff is ignored.

src/libguc/src/cgltf_util.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ namespace detail
6565
strcmp(name, "KHR_materials_variants") == 0 ||
6666
strcmp(name, "KHR_materials_volume") == 0 ||
6767
strcmp(name, "KHR_mesh_quantization") == 0 ||
68+
strcmp(name, "KHR_meshopt_compression") == 0 ||
6869
strcmp(name, "KHR_texture_transform") == 0;
6970
}
7071

@@ -408,6 +409,10 @@ namespace detail
408409
case cgltf_meshopt_compression_filter_exponential:
409410
meshopt_decodeFilterExp(result, mc.count, mc.stride);
410411
break;
412+
413+
case cgltf_meshopt_compression_filter_color:
414+
meshopt_decodeFilterColor(result, mc.count, mc.stride);
415+
break;
411416
}
412417

413418
bufferView.data = result;

0 commit comments

Comments
 (0)