summaryrefslogtreecommitdiffhomepage
path: root/src/rmodels.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-10-23 14:17:26 +0200
committerraysan5 <[email protected]>2021-10-23 14:17:26 +0200
commit62965aa6d7bd58f88f7be5c2d6060f3c9cfa28b6 (patch)
treea5e43bd62688c360204ffe88f1aa2cbebbb9ff1e /src/rmodels.c
parent04a4efb5916d711b4a429d007da05ecf64cb3ee7 (diff)
downloadraylib-62965aa6d7bd58f88f7be5c2d6060f3c9cfa28b6.tar.gz
raylib-62965aa6d7bd58f88f7be5c2d6060f3c9cfa28b6.zip
Comments tweaks
Diffstat (limited to 'src/rmodels.c')
-rw-r--r--src/rmodels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmodels.c b/src/rmodels.c
index ed72fb28..873b242e 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -4797,10 +4797,10 @@ static Model LoadGLTF(const char *fileName)
if ((attribute->component_type == cgltf_component_type_r_32f) && (attribute->type == cgltf_type_vec4))
{
- // Init raylib mesh normals to copy glTF attribute data
+ // Init raylib mesh tangent to copy glTF attribute data
model.meshes[meshIndex].tangents = RL_MALLOC(attribute->count*4*sizeof(float));
- // Load 3 components of float data type into mesh.normals
+ // Load 4 components of float data type into mesh.tangents
LOAD_ATTRIBUTE(attribute, 4, float, model.meshes[meshIndex].tangents)
}
else TRACELOG(LOG_WARNING, "MODEL: [%s] Tangent attribute data format not supported, use vec4 float", fileName);