Skip to content

Commit

Permalink
fix tangent generation
Browse files Browse the repository at this point in the history
invert face direction
  • Loading branch information
UX3D-labode authored and jeffamstutz committed Oct 23, 2024
1 parent 04ce280 commit 5b3fd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anari_test_scenes/scenes/file/gltf2anari.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void set_tspace(const SMikkTSpaceContext *pContext,
tangentData[idx].x = fv_tangent[0];
tangentData[idx].y = fv_tangent[1];
tangentData[idx].z = fv_tangent[2];
tangentData[idx].w = face_sign;
tangentData[idx].w = -face_sign;
}
/* END Mikktspace's API Functions*/

Expand Down

0 comments on commit 5b3fd06

Please sign in to comment.