KhronosGroup / COLLADA2GLTF

COLLADA to glTF converter
Other
533 stars 156 forks source link

KHR_binary_glTF 1.0 shader encoding #143

Open lasalvavida opened 6 years ago

lasalvavida commented 6 years ago

If converting to 1.0, the shaders should be embedded in the buffer instead of the less efficient Base64 uri encoding.

andreasplesch commented 6 years ago

Here is the relevant section in the spec.:

https://github.com/KhronosGroup/glTF/blob/master/extensions/1.0/Khronos/KHR_binary_glTF/README.md#gltf-schema-updates

To support embedded shaders and images, shader and image glTF properties have new KHR_binary_glTF extension properties that should be used instead of the uri property. See Listings 2 and 3.