Skip to content

Commit

Permalink
tangent and normal map correct
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxx1987 committed Mar 25, 2022
1 parent 2b9cf43 commit 0d88e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenvis/GraphicPrimitive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void parseTrianglesDrawBuffer(zeno::PrimitiveObject *prim, drawObject &obj)
mem[15 * i + 12] = nrm[tris[i][2]];
mem[15 * i + 13] = has_uv ? tris.attr<zeno::vec3f>("uv2")[i] : zeno::vec3f(0.0f, 0.0f, 0.0f);
mem[15 * i + 14] = tang[i];
std::cout<<tang[i][0]<<" "<<tang[i][1]<<" "<<tang[i][2]<<std::endl;
//std::cout<<tang[i][0]<<" "<<tang[i][1]<<" "<<tang[i][2]<<std::endl;
trisdata[i] = zeno::vec3i(i*3, i*3+1, i*3+2);

}
Expand Down

0 comments on commit 0d88e4e

Please sign in to comment.