[Help] Custom Sky in Custom Planet\Moon

Discussion in 'Support' started by BlesseNtumble, Dec 5, 2014.

  1. BlesseNtumble

    BlesseNtumble Member

    Joined:
    Nov 1, 2014
    Messages:
    308
    Likes Received:
    70
    Good day. There was a question about the change of color of the sky.
    What file specifies the color of the sky?
    Try to put it in WorldProvider:
    @Override
    public boolean isSkyColored()
    {
    return true;
    }

    @Override

    public Vector3 getSkyColor() {

    float f = 1.0F - this.getStarBrightness(1.0F);
    return new Vector3(205 / 255.0F * f, 145 / 255.0F * f, 158 / 255.0F * f);

    }

    Only got this:
    [​IMG]
     
  2. radfast

    radfast Administrator
    Staff Member

    Joined:
    Apr 27, 2014
    Messages:
    1,143
    Likes Received:
    352
    You want to look at the SkyProvider I think.
     

Share This Page