Rift rendering work

Not sure if I want to keep working at this or not
This commit is contained in:
StevenRS11
2013-08-21 22:13:59 -04:00
parent 2e833b55c3
commit c7ddff97b2
3 changed files with 60 additions and 49 deletions

View File

@@ -41,7 +41,7 @@ public class RenderRift extends TileEntitySpecialRenderer
//GL11.glLogicOp(GL11.GL_INVERT);
// GL11.glEnable(GL11.GL_COLOR_LOGIC_OP);
GL11.glColor4f(.15F, .15F, .15F, 1F);
GL11.glColor4f(.3F, .3F, .3F, 1F);
GL11.glEnable(GL_BLEND);
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ZERO);
@@ -76,7 +76,7 @@ public class RenderRift extends TileEntitySpecialRenderer
break;
}
double[] coords = quads.get(i);
double width=Math.log(Math.pow(quads.size(),2-i/2)+1)/14;
double width=Math.log(Math.pow(quads.size(),2-Math.log(i+1))+1)/14;
if(coords[3]==0)
{
@@ -137,7 +137,7 @@ public class RenderRift extends TileEntitySpecialRenderer
break;
}
double[] coords = quads.get(i);
double width=Math.log(Math.pow(quads.size(),2-i/2)+1)/14;
double width=Math.log(Math.pow(quads.size(),2-Math.log(i+1))+1)/14;
if(coords[3]==0)
{