lights.setPointLightIntensity( 1, new Vec4( 0.0f, 0.0f, 0.3f, 1.0f ) );
lights.setPointLightIntensity( 2, new Vec4( 0.3f, 0.0f, 0.0f, 1.0f ) );
}
private void setupNighttimeLighting() {
SunlightValue values[] = {
new SunlightValue(
0.0f / 24.0f,
new Vec4( 0.2f, 0.2f, 0.2f, 1.0f ),
new Vec4( 0.6f, 0.6f, 0.6f, 1.0f ),
new Vec4( skyDaylightColor ) ),
new SunlightValue(
4.5f / 24.0f,
new Vec4( 0.2f, 0.2f, 0.2f, 1.0f ),
new Vec4( 0.6f, 0.6f, 0.6f, 1.0f ),
new Vec4( skyDaylightColor ) ),
new SunlightValue(
6.5f / 24.0f,
new Vec4( 0.15f, 0.05f, 0.05f, 1.0f ),
new Vec4( 0.3f, 0.1f, 0.10f, 1.0f ),
new Vec4( 0.5f, 0.1f, 0.1f, 1.0f ) ),
new SunlightValue(
8.0f / 24.0f,
new Vec4( 0.0f, 0.0f, 0.0f, 1.0f ),
new Vec4( 0.0f, 0.0f, 0.0f, 1.0f ),
new Vec4( 0.0f, 0.0f, 0.0f, 1.0f ) ),
new SunlightValue(
18.0f / 24.0f,
new Vec4( 0.0f, 0.0f, 0.0f, 1.0f ),
new Vec4( 0.0f, 0.0f, 0.0f, 1.0f ),
new Vec4( 0.0f, 0.0f, 0.0f, 1.0f ) ),
new SunlightValue(
19.5f / 24.0f,
new Vec4( 0.15f, 0.05f, 0.05f, 1.0f ),
new Vec4( 0.3f, 0.1f, 0.1f, 1.0f ),
new Vec4( 0.5f, 0.1f, 0.1f, 1.0f ) ),
new SunlightValue(
20.5f / 24.0f,
new Vec4( 0.2f, 0.2f, 0.2f, 1.0f ),
new Vec4( 0.6f, 0.6f, 0.6f, 1.0f ),
new Vec4( skyDaylightColor ) )
};