Skip to content

Commit

Permalink
remove unnecessary param in vertmesh::assignvert
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Feb 2, 2025
1 parent ffd15fc commit e1062f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/engine/model/vertmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void vertmodel::vertmesh::genshadowmesh(std::vector<triangle> &out, const matrix
}
}

void vertmodel::vertmesh::assignvert(vvertg &vv, int j, const tcvert &tc, const vert &v)
void vertmodel::vertmesh::assignvert(vvertg &vv, const tcvert &tc, const vert &v)
{
vv.pos = vec4<half>(v.pos, 1);
vv.tc = tc.tc;
Expand Down
4 changes: 2 additions & 2 deletions src/engine/model/vertmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class vertmodel : public animmodel
void genBIH(BIH::mesh &m) const override final;
void genshadowmesh(std::vector<triangle> &out, const matrix4x3 &m) const override final;

static void assignvert(vvertg &vv, int j, const tcvert &tc, const vert &v);
static void assignvert(vvertg &vv, const tcvert &tc, const vert &v);

template<class T>
int genvbo(std::vector<uint> &idxs, int offset, std::vector<T> &vverts, int *htdata, int htlen)
Expand All @@ -76,7 +76,7 @@ class vertmodel : public animmodel
const vert &v = verts[index];
const tcvert &tc = tcverts[index];
T vv;
assignvert(vv, index, tc, v);
assignvert(vv, tc, v);
const auto hashfn = std::hash<vec>();
const int htidx = hashfn(v.pos)&(htlen-1);
for(int k = 0; k < htlen; ++k)
Expand Down

0 comments on commit e1062f0

Please sign in to comment.