Skip to content

Commit

Permalink
DirectX12 Surface Normals
Browse files Browse the repository at this point in the history
  • Loading branch information
moonwho101 committed Dec 21, 2024
1 parent adff2c0 commit c503f76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ProcessModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,10 @@ void SmoothNormals(int start_cnt) {

scount = 0;

for (int j = start_cnt; j < cnt; j++) {
//GitHub copilot fixed this! AI is the future.
//old code: for (int j = start_cnt; j < cnt; j++)

for (int j = i; j < cnt; j++) {
if (tracknormal[j] == 0 && x == src_v[j].x && y == src_v[j].y && z == src_v[j].z) {
//found shared vertex
sharedv[scount] = j;
Expand Down

0 comments on commit c503f76

Please sign in to comment.