| 272 | ConstantBuffer<AppSettingsCBuffer> CBuffer; |
| 273 | |
| 274 | void Initialize(ID3D11Device* device) |
| 275 | { |
| 276 | TwBar* tweakBar = Settings.TweakBar(); |
| 277 | |
| 278 | EnableSun.Initialize(tweakBar, "EnableSun", "Sun Light", "Enable Sun", "Enables the sun light", true); |
| 279 | Settings.AddSetting(&EnableSun); |
| 280 | |
| 281 | SunAreaLightApproximation.Initialize(tweakBar, "SunAreaLightApproximation", "Sun Light", "Sun Area Light Approximation", "Controls whether the sun is treated as a disc area light in the real-time shader", true); |
| 282 | Settings.AddSetting(&SunAreaLightApproximation); |
| 283 | |
| 284 | SunTintColor.Initialize(tweakBar, "SunTintColor", "Sun Light", "Sun Tint Color", "The color of the sun", Float3(1.0000f, 1.0000f, 1.0000f), false, -340282300000000000000000000000000000000.0000f, 340282300000000000000000000000000000000.0000f, 0.0100f, ColorUnit::None); |
| 285 | Settings.AddSetting(&SunTintColor); |
| 286 | |
| 287 | SunIntensityScale.Initialize(tweakBar, "SunIntensityScale", "Sun Light", "Sun Intensity Scale", "Scale the intensity of the sun", 1.0000f, 0.0000f, 340282300000000000000000000000000000000.0000f, 0.0100f, ConversionMode::None, 1.0000f); |
| 288 | Settings.AddSetting(&SunIntensityScale); |
| 289 | |
| 290 | SunSize.Initialize(tweakBar, "SunSize", "Sun Light", "Sun Size", "Angular radius of the sun in degrees", 0.2700f, 0.0100f, 340282300000000000000000000000000000000.0000f, 0.0010f, ConversionMode::None, 1.0000f); |
| 291 | Settings.AddSetting(&SunSize); |
| 292 | |
| 293 | NormalizeSunIntensity.Initialize(tweakBar, "NormalizeSunIntensity", "Sun Light", "Normalize Sun Intensity", "", false); |
| 294 | Settings.AddSetting(&NormalizeSunIntensity); |
| 295 | |
| 296 | SunDirType.Initialize(tweakBar, "SunDirType", "Sun Light", "Sun Dir Type", "Input direction type for the sun", SunDirectionTypes::HorizontalCoordSystem, 2, SunDirectionTypesLabels); |
| 297 | Settings.AddSetting(&SunDirType); |
| 298 | |
| 299 | SunDirection.Initialize(tweakBar, "SunDirection", "Sun Light", "Sun Direction", "Director of the sun", Float3(-0.7500f, 0.9770f, -0.4000f)); |
| 300 | Settings.AddSetting(&SunDirection); |
| 301 | |
| 302 | SunAzimuth.Initialize(tweakBar, "SunAzimuth", "Sun Light", "Sun Azimuth", "Angle around the horizon", 0.0000f, 0.0000f, 360.0000f, 0.1000f, ConversionMode::None, 1.0000f); |
| 303 | Settings.AddSetting(&SunAzimuth); |
| 304 | |
| 305 | SunElevation.Initialize(tweakBar, "SunElevation", "Sun Light", "Sun Elevation", "Elevation of sun from ground. 0 degrees is aligned on the horizon while 90 degrees is directly overhead", 0.0000f, 0.0000f, 90.0000f, 0.1000f, ConversionMode::None, 1.0000f); |
| 306 | Settings.AddSetting(&SunElevation); |
| 307 | |
| 308 | SkyMode.Initialize(tweakBar, "SkyMode", "Sky", "Sky Mode", "Controls the sky used for GI baking and background rendering", SkyModes::Procedural, 6, SkyModesLabels); |
| 309 | Settings.AddSetting(&SkyMode); |
| 310 | |
| 311 | SkyColor.Initialize(tweakBar, "SkyColor", "Sky", "Sky Color", "The color of the simple sky", Float3(1400.0000f, 3500.0000f, 7000.0000f), true, 0.0000f, 1000000.0000f, 0.1000f, ColorUnit::Luminance); |
| 312 | Settings.AddSetting(&SkyColor); |
| 313 | |
| 314 | Turbidity.Initialize(tweakBar, "Turbidity", "Sky", "Turbidity", "", 2.0000f, 1.0000f, 10.0000f, 0.0100f, ConversionMode::None, 1.0000f); |
| 315 | Settings.AddSetting(&Turbidity); |
| 316 | |
| 317 | GroundAlbedo.Initialize(tweakBar, "GroundAlbedo", "Sky", "Ground Albedo", "", Float3(0.5000f, 0.5000f, 0.5000f), false, -340282300000000000000000000000000000000.0000f, 340282300000000000000000000000000000000.0000f, 0.0100f, ColorUnit::None); |
| 318 | Settings.AddSetting(&GroundAlbedo); |
| 319 | |
| 320 | EnableAreaLight.Initialize(tweakBar, "EnableAreaLight", "Area Light", "Enable Area Light", "Enables the area light during baking and ground truth rendering", false); |
| 321 | Settings.AddSetting(&EnableAreaLight); |
| 322 | |
| 323 | AreaLightColor.Initialize(tweakBar, "AreaLightColor", "Area Light", "Color", "The color of the area light", Float3(1000000.0000f, 1000000.0000f, 1000000.0000f), true, 0.0000f, 340282300000000000000000000000000000000.0000f, 0.1000f, ColorUnit::Luminance); |
| 324 | Settings.AddSetting(&AreaLightColor); |
| 325 | |
| 326 | AreaLightIlluminance.Initialize(tweakBar, "AreaLightIlluminance", "Area Light", "Color Intensity (lux)", "", 1.0000f, 0.0000f, 340282300000000000000000000000000000000.0000f, 0.0100f, ConversionMode::None, 1.0000f); |
| 327 | Settings.AddSetting(&AreaLightIlluminance); |
| 328 | AreaLightIlluminance.SetVisible(false); |
| 329 | |
| 330 | AreaLightLuminousPower.Initialize(tweakBar, "AreaLightLuminousPower", "Area Light", "Color Intensity (lm)", "", 1.0000f, 0.0000f, 340282300000000000000000000000000000000.0000f, 0.0100f, ConversionMode::None, 1.0000f); |
| 331 | Settings.AddSetting(&AreaLightLuminousPower); |
no test coverage detected