We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 441b723 + 712f7a4 commit 1cef736Copy full SHA for 1cef736
src/scene.cpp
@@ -144,7 +144,7 @@ static bool loadObj(std::vector<Vertex>& vertices, const char* path)
144
v.tp = 0;
145
v.np = (meshopt_quantizeSnorm(obj->normals[gi.n * 3 + 0], 10) + 511) |
146
(meshopt_quantizeSnorm(obj->normals[gi.n * 3 + 1], 10) + 511) << 10 |
147
- (meshopt_quantizeSnorm(obj->normals[gi.n * 3 + 1], 10) + 511) << 20;
+ (meshopt_quantizeSnorm(obj->normals[gi.n * 3 + 2], 10) + 511) << 20;
148
v.tu = meshopt_quantizeHalf(obj->texcoords[gi.t * 2 + 0]);
149
v.tv = meshopt_quantizeHalf(obj->texcoords[gi.t * 2 + 1]);
150
}
0 commit comments