Skip to content

Commit

Permalink
Add utility for setting UV tex on all CCModel vertices.
Browse files Browse the repository at this point in the history
  • Loading branch information
covers1624 committed Apr 26, 2024
1 parent 24d2c4f commit d85dd46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/codechicken/lib/render/CCModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ public CCModel setColour(int c) {
return this;
}

public CCModel setTex(int tex) {
for (Vertex5 vert : verts) {
vert.uv.tex = tex;
}
return this;
}

/**
* Computes the minecraft lighting coordinates for use with a LightMatrix
*
Expand Down

0 comments on commit d85dd46

Please sign in to comment.