void SetupHDRLighting() { SunlightValue[] values = new SunlightValue[] { new SunlightValue(0.0f/24.0f, new Vector4(0.6f, 0.6f, 0.6f, 1.0f), new Vector4(1.8f, 1.8f, 1.8f, 1.0f), g_skyDaylightColor, 3.0f), new SunlightValue(4.5f/24.0f, new Vector4(0.6f, 0.6f, 0.6f, 1.0f), new Vector4(1.8f, 1.8f, 1.8f, 1.0f), g_skyDaylightColor, 3.0f), new SunlightValue(6.5f/24.0f, new Vector4(0.225f, 0.075f, 0.075f, 1.0f), new Vector4(0.45f, 0.15f, 0.15f, 1.0f), new Vector4(0.5f, 0.1f, 0.1f, 1.0f), 1.5f), new SunlightValue(8.0f/24.0f, new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), 1.0f), new SunlightValue(18.0f/24.0f, new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), 1.0f), new SunlightValue(19.5f/24.0f, new Vector4(0.225f, 0.075f, 0.075f, 1.0f), new Vector4(0.45f, 0.15f, 0.15f, 1.0f), new Vector4(0.5f, 0.1f, 0.1f, 1.0f), 1.5f), new SunlightValue(20.5f/24.0f, new Vector4(0.6f, 0.6f, 0.6f, 1.0f), new Vector4(1.8f, 1.8f, 1.8f, 1.0f), g_skyDaylightColor, 3.0f), }; g_lights.SetSunlightValues(values); g_lights.SetPointLightIntensity(0, new Vector4(0.6f, 0.6f, 0.6f, 1.0f)); g_lights.SetPointLightIntensity(1, new Vector4(0.0f, 0.0f, 0.7f, 1.0f)); g_lights.SetPointLightIntensity(2, new Vector4(0.7f, 0.0f, 0.0f, 1.0f)); }
void SetupGammaLighting() { Vector4 sunlight = new Vector4(6.5f, 6.5f, 6.5f, 1.0f); Vector4 brightAmbient = new Vector4(0.4f, 0.4f, 0.4f, 1.0f); SunlightValue[] values = new SunlightValue[] { new SunlightValue(0.0f/24.0f, brightAmbient, sunlight, new Vector4(0.65f, 0.65f, 1.0f, 1.0f), 10.0f), new SunlightValue(4.5f/24.0f, brightAmbient, sunlight, g_skyDaylightColor, 10.0f), new SunlightValue(6.5f/24.0f, new Vector4(0.01f, 0.025f, 0.025f, 1.0f), new Vector4(2.5f, 0.2f, 0.2f, 1.0f), new Vector4(0.5f, 0.1f, 0.1f, 1.0f), 5.0f), new SunlightValue(8.0f/24.0f, new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), 3.0f), new SunlightValue(18.0f/24.0f, new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), new Vector4(0.0f, 0.0f, 0.0f, 1.0f), 3.0f), new SunlightValue(19.5f/24.0f, new Vector4(0.01f, 0.025f, 0.025f, 1.0f), new Vector4(2.5f, 0.2f, 0.2f, 1.0f), new Vector4(0.5f, 0.1f, 0.1f, 1.0f), 5.0f), new SunlightValue(20.5f/24.0f, brightAmbient, sunlight, g_skyDaylightColor, 10.0f) }; g_lights.SetSunlightValues(values); g_lights.SetPointLightIntensity(0, new Vector4(0.6f, 0.6f, 0.6f, 1.0f)); g_lights.SetPointLightIntensity(1, new Vector4(0.0f, 0.0f, 0.7f, 1.0f)); g_lights.SetPointLightIntensity(2, new Vector4(0.7f, 0.0f, 0.0f, 1.0f)); }