mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 15:56:07 +00:00
Materials and capacitors ported.
This commit is contained in:
1 parent
f0fbfe5844
commit
c0bef5cc24
20 files changed
+363
-333
No files matched your search
@@ -227,6 +227,9 @@ public class ConnectedTextureRenderer implements IRenderFace {
|
||||
|
||||
private void applyLighting(Vertex vert, Vector3d samplePoint, List<Vertex> litVertices) {
|
||||
Vertex closest = getClosestVertex(litVertices, samplePoint);
|
||||
if(closest == null) {
|
||||
return;
|
||||
}
|
||||
vert.setBrightness(closest.brightness);
|
||||
Vector4f col = closest.getColor();
|
||||
if(col != null) {
|
||||
@@ -262,6 +265,9 @@ public class ConnectedTextureRenderer implements IRenderFace {
|
||||
|
||||
private void moveCorners(List<Vertex> vertices, ForgeDirection edge, float scaleFactor) {
|
||||
int[] indices = getClosest(edge, vertices);
|
||||
if(indices[0] < 0) {
|
||||
return;
|
||||
}
|
||||
vertices.get(indices[0]).xyz.x -= scaleFactor * edge.offsetX;
|
||||
vertices.get(indices[1]).xyz.x -= scaleFactor * edge.offsetX;
|
||||
vertices.get(indices[0]).xyz.y -= scaleFactor * edge.offsetY;
|
||||
|
||||
Reference in new issue
Block a user