From d85dd463630c7f6565d68029295d16d43759ff06 Mon Sep 17 00:00:00 2001 From: covers1624 Date: Mon, 22 Apr 2024 14:32:24 +0930 Subject: [PATCH] Add utility for setting UV tex on all CCModel vertices. --- src/main/java/codechicken/lib/render/CCModel.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/codechicken/lib/render/CCModel.java b/src/main/java/codechicken/lib/render/CCModel.java index 568144a4..4c953e4d 100644 --- a/src/main/java/codechicken/lib/render/CCModel.java +++ b/src/main/java/codechicken/lib/render/CCModel.java @@ -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 *