Declaration
Gltf_Node_Light :: struct @json(rename_all=camelCase) {
light: u32; extras: Json_Value; @json(default,skip_serializing_if=null)}KHR_lights_punctual on a node: the index of the light it carries, into Gltf_Lights.
asset, error := gltf_load("{\"asset\":{\"version\":\"2.0\"},\"extensionsUsed\":[\"KHR_lights_punctual\"],\"nodes\":[{\"extensions\":{\"KHR_lights_punctual\":{\"light\":1}}}]}");
assert(error.kind == .NONE);
defer gltf_free(*asset);
carried, found, _ := gltf_extension(*asset.document.nodes[0].extensions, "KHR_lights_punctual", Gltf_Node_Light);
assert(found && carried.light == 1);