vk: fixup studio model zero normal printing

This commit is contained in:
Ivan Avdeev 2024-01-19 11:39:26 -05:00
parent 344c804468
commit 073dbc55f8
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
## 2024-01-19 E366
- [x] investigate more shading nans
- found zero normals in studio models, see #731
- [ ] guns and transparency
- [ ] flashlight is too bright
- [ ] bounce diffuse is still way darker than before
# Previously

View File

@ -1723,9 +1723,9 @@ static void buildSubmodelMeshGeometry( build_submodel_mesh_t args ) {
g_studio_current.entmodel->studio_header->name,
g_studio_current.bodypart_index,
j, vertex_offset, j + vertex_offset, vi,
g_studio.norms[0],
g_studio.norms[1],
g_studio.norms[2],
g_studio.norms[vi][0],
g_studio.norms[vi][1],
g_studio.norms[vi][2],
normal_len2
);
}