Package codechicken.lib.render

Examples of codechicken.lib.render.ColourMultiplier


    Colour colour = new ColourRGBA(panel.colour.getColor(0), panel.colour.getColor(1), panel.colour.getColor(2), 1);
    int side = panel.side.ordinal();
   
    frameModels[side].render(new Translation(panel.x(), panel.y(), panel.z()), new IconTransformation(icon));
    lightModels[side].render(new Translation(panel.x(), panel.y(), panel.z()), new IconTransformation(icon), new ColourMultiplier(colour.rgba()));
  }
View Full Code Here


    Colour colour = new ColourRGBA(c.getColor(0), c.getColor(1), c.getColor(2), 1);
    Colour white = new ColourRGBA(1.0, 1.0, 1.0, 1.0);
   
    for(int i = 4; i < 5; i++)
    {
      frameModels[i].render(new IconTransformation(icon), new ColourMultiplier(white.rgba()));
      lightModels[i].render(new IconTransformation(icon), new ColourMultiplier(colour.rgba()));
    }
   
    CCRenderState.draw();
  }
View Full Code Here

  public void renderPart(IIcon icon, CCModel cc, double x, double y, double z, Colour color)
  {
    if(color != null)
    {
      cc.render(new Translation(x, y, z), new IconTransformation(icon), new ColourMultiplier(color.rgba()));
    }
    else {
      cc.render(new Translation(x, y, z), new IconTransformation(icon));
    }
  }
View Full Code Here

  public void renderTransparency(IIcon icon, CCModel cc, Colour color)
  {
    if(color != null)
    {
      cc.render(new IconTransformation(icon), new ColourMultiplier(color.rgba()));
    }
    else {
      cc.render(new IconTransformation(icon));
    }
  }
View Full Code Here

TOP

Related Classes of codechicken.lib.render.ColourMultiplier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.