Skip to content

Commit

Permalink
Fix diffuseFactor name in writer (bug jkuhlmann#153).
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuhlmann committed Aug 24, 2021
1 parent 0feaa48 commit c943c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgltf_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ static void cgltf_write_material(cgltf_write_context* context, const cgltf_mater
CGLTF_WRITE_TEXTURE_INFO("specularGlossinessTexture", params->specular_glossiness_texture);
if (cgltf_check_floatarray(params->diffuse_factor, 4, 1.0f))
{
cgltf_write_floatarrayprop(context, "dffuseFactor", params->diffuse_factor, 4);
cgltf_write_floatarrayprop(context, "diffuseFactor", params->diffuse_factor, 4);
}
if (cgltf_check_floatarray(params->specular_factor, 3, 1.0f))
{
Expand Down

0 comments on commit c943c16

Please sign in to comment.