summaryrefslogtreecommitdiff
path: root/ihl/model
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-04-08 10:18:42 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-04-08 10:18:42 +0300
commita492e009bc895a653d2a7e19c9b320f9477f4c33 (patch)
tree0c723475e02eccc104950a8ee1436a8d5a05d3a5 /ihl/model
parent1a20d0d9a7fd77fbf499aeaaadcdb94cffb97c90 (diff)
Platinum dust as catalyst, Iron catalist as dust
Diffstat (limited to 'ihl/model')
-rw-r--r--ihl/model/RenderBlocksExt.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/ihl/model/RenderBlocksExt.java b/ihl/model/RenderBlocksExt.java
index f634bb0..b4b334a 100644
--- a/ihl/model/RenderBlocksExt.java
+++ b/ihl/model/RenderBlocksExt.java
@@ -33,16 +33,14 @@ public class RenderBlocksExt extends RenderBlocks {
}
private void transformColour(int x, int y, int z, int[] normal) {
- for (LightSource lightSource : ((ClientProxy)IHLMod.proxy).getLightHandler().lightSources) {
+ /* for (LightSource lightSource : ((ClientProxy)IHLMod.proxy).getLightHandler().lightSources) {
if (lightSource.isBlockIlluminated(x, y, z)) {
int[] lightValue = lightSource.getLightValue((int) x, (int) y, (int) z, normal);
System.out.println("this.brightnessBottomRight="+this.brightnessBottomRight);
-// this.brightnessTopLeft |= lightValue[0];
-// this.brightnessBottomLeft |= lightValue[0];
-// this.brightnessTopRight |= lightValue[0];
- this.brightnessBottomRight |= lightValue[0]>>4;
- System.out.println("lightValue[0]="+lightValue[0]);
- System.out.println("this.brightnessBottomRight|lightValue[0]="+this.brightnessBottomRight);
+ this.brightnessTopLeft |= lightValue[0];
+ this.brightnessBottomLeft |= lightValue[0];
+ this.brightnessTopRight |= lightValue[0];
+ this.brightnessBottomRight |= lightValue[0];
this.colorRedTopLeft *= (255 - lightValue[0]) * lightValue[1] / 255 / 255f;
this.colorRedBottomLeft *= (255 - lightValue[0]) * lightValue[1] / 255 / 255f;
this.colorRedTopRight *= (255 - lightValue[0]) * lightValue[1] / 255 / 255f;
@@ -56,7 +54,7 @@ public class RenderBlocksExt extends RenderBlocks {
this.colorGreenTopRight *= (255 - lightValue[0]) * lightValue[3] / 255 / 255f;
this.colorGreenBottomRight *= (255 - lightValue[0]) * lightValue[3] / 255 / 255f;
}
- }
+ }*/
}
@Override