mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-15 01:24:58 +00:00
Added apply methods to some common Vector containers
Added ColourMultiplier vertex modifier.
This commit is contained in:
1 parent
4bd5aab59a
commit
575ec57050
4 files changed
+61
-1
No files matched your search
@@ -325,7 +325,7 @@ public class CCModel
|
||||
public CCModel apply(Transformation t)
|
||||
{
|
||||
for(int k = 0; k < verts.length; k++)
|
||||
t.apply(verts[k].vec);
|
||||
verts[k].apply(t);
|
||||
|
||||
if(normals != null)
|
||||
for(int k = 0; k < normals.length; k++)
|
||||
@@ -333,6 +333,14 @@ public class CCModel
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public CCModel apply(IUVTransformation uvt)
|
||||
{
|
||||
for(int k = 0; k < verts.length; k++)
|
||||
verts[k].apply(uvt);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public void render()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user