nullarbor.light
Class Sunlight

public class Sunlight
Author:
daniel
Constructor Detail

Sunlight

public Sunlight(long length,
                float offset,
                float period)
Parameters:
length - long
offset - float the starting offset through the day, eg 0.5 = noon, 0.75 = sunset
period - float the length of period of the day during which the scene will occur eg, 0.25 = quarter day

Method Detail

getSunlight

public javax.media.j3d.DirectionalLight getSunlight(double t)
Returns a DirectionalLight object. t = 0 is midnight the length of a full day is 1t