MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / ParseNormalTextureInfo

Function ParseNormalTextureInfo

external/tinygltf/tiny_gltf.h:4491–4510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4489}
4490
4491static bool ParseNormalTextureInfo(
4492 NormalTextureInfo *texinfo, std::string *err, const detail::json &o,
4493 bool store_original_json_for_extras_and_extensions) {
4494 if (texinfo == nullptr) {
4495 return false;
4496 }
4497
4498 if (!ParseIntegerProperty(&texinfo->index, err, o, "index",
4499 /* required */ true, "NormalTextureInfo")) {
4500 return false;
4501 }
4502
4503 ParseIntegerProperty(&texinfo->texCoord, err, o, "texCoord", false);
4504 ParseNumberProperty(&texinfo->scale, err, o, "scale", false);
4505
4506 ParseExtrasAndExtensions(texinfo, err, o,
4507 store_original_json_for_extras_and_extensions);
4508
4509 return true;
4510}
4511
4512static bool ParseOcclusionTextureInfo(
4513 OcclusionTextureInfo *texinfo, std::string *err, const detail::json &o,

Callers 1

ParseMaterialFunction · 0.85

Calls 3

ParseIntegerPropertyFunction · 0.85
ParseNumberPropertyFunction · 0.85
ParseExtrasAndExtensionsFunction · 0.85

Tested by

no test coverage detected