Explorar o código

Updated cgltf.

Бранимир Караџић %!s(int64=4) %!d(string=hai) anos
pai
achega
187b3dd8c1
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      3rdparty/cgltf/cgltf.h

+ 5 - 0
3rdparty/cgltf/cgltf.h

@@ -597,6 +597,7 @@ typedef struct cgltf_light {
 	cgltf_float range;
 	cgltf_float spot_inner_cone_angle;
 	cgltf_float spot_outer_cone_angle;
+	cgltf_extras extras;
 } cgltf_light;
 
 struct cgltf_node {
@@ -4882,6 +4883,10 @@ static int cgltf_parse_json_light(cgltf_options* options, jsmntok_t const* token
 				}
 			}
 		}
+		else if (cgltf_json_strcmp(tokens + i, json_chunk, "extras") == 0)
+		{
+			i = cgltf_parse_json_extras(tokens, i + 1, json_chunk, &out_light->extras);
+		}
 		else
 		{
 			i = cgltf_skip_json(tokens, i+1);