|
@@ -11,78 +11,57 @@ namespace anki
|
|
|
|
|
|
|
|
Config::Config()
|
|
Config::Config()
|
|
|
{
|
|
{
|
|
|
- //
|
|
|
|
|
// Renderer
|
|
// Renderer
|
|
|
- //
|
|
|
|
|
|
|
+ newOption("r.renderingQuality", 1.0, "Rendering quality factor");
|
|
|
|
|
+ newOption("r.lodDistance0", 10.0, "Distance that will be used to calculate the LOD 0");
|
|
|
|
|
+ newOption("r.lodDistance1", 20.0, "Distance that will be used to calculate the LOD 1");
|
|
|
|
|
+ newOption("r.clusterSizeX", 32);
|
|
|
|
|
+ newOption("r.clusterSizeY", 26);
|
|
|
|
|
+ newOption("r.clusterSizeZ", 32);
|
|
|
|
|
+ newOption("r.maxLightsPerCluster", 8);
|
|
|
|
|
|
|
|
- newOption("sm.enabled", true);
|
|
|
|
|
- newOption("sm.poissonEnabled", true);
|
|
|
|
|
- newOption("sm.bilinearEnabled", true);
|
|
|
|
|
- newOption("sm.resolution", 512);
|
|
|
|
|
- newOption("sm.maxLights", 4);
|
|
|
|
|
|
|
+ newOption("r.shadowMapping.enabled", true);
|
|
|
|
|
+ newOption("r.shadowMapping.poissonEnabled", true);
|
|
|
|
|
+ newOption("r.shadowMapping.bilinearEnabled", true);
|
|
|
|
|
+ newOption("r.shadowMapping.resolution", 512);
|
|
|
|
|
+ newOption("r.shadowMapping.maxLights", 16);
|
|
|
|
|
|
|
|
- newOption("r.ms.earlyZDistance", 10.0);
|
|
|
|
|
|
|
+ newOption("r.lensFlare.maxSpritesPerFlare", 8);
|
|
|
|
|
+ newOption("r.lensFlare.maxFlares", 16);
|
|
|
|
|
|
|
|
- newOption("is.maxPointLights", 384);
|
|
|
|
|
- newOption("is.maxSpotLights", 16);
|
|
|
|
|
- newOption("is.maxSpotTexLights", 8);
|
|
|
|
|
- newOption("is.maxLightsPerCluster", 8);
|
|
|
|
|
|
|
+ newOption("r.bloom.threshold", 2.5);
|
|
|
|
|
+ newOption("r.bloom.scale", 2.5);
|
|
|
|
|
|
|
|
- newOption("lf.maxSpritesPerFlare", 8);
|
|
|
|
|
- newOption("lf.maxFlares", 16);
|
|
|
|
|
|
|
+ newOption("r.finalComposite.sharpen", false);
|
|
|
|
|
|
|
|
- newOption("bloom.enabled", true);
|
|
|
|
|
- newOption("bloom.renderingQuality", 0.5);
|
|
|
|
|
- newOption("bloom.blurringDist", 1.0);
|
|
|
|
|
- newOption("bloom.samples", 5);
|
|
|
|
|
- newOption("bloom.blurringIterationsCount", 1);
|
|
|
|
|
- newOption("bloom.threshold", 1.0);
|
|
|
|
|
- newOption("bloom.scale", 2.0);
|
|
|
|
|
|
|
+ newOption("r.indirect.reflectionSize", 128);
|
|
|
|
|
+ newOption("r.indirect.maxProbeCount", 32);
|
|
|
|
|
|
|
|
- newOption("ssao.enabled", true);
|
|
|
|
|
- newOption("ssao.renderingQuality", 0.3);
|
|
|
|
|
- newOption("ssao.blurringIterationsCount", 1);
|
|
|
|
|
|
|
+ newOption("r.dbg.enabled", false);
|
|
|
|
|
|
|
|
- newOption("sslf.enabled", true);
|
|
|
|
|
-
|
|
|
|
|
- newOption("pps.enabled", true);
|
|
|
|
|
- newOption("pps.sharpen", false);
|
|
|
|
|
- newOption("pps.gammaCorrection", true);
|
|
|
|
|
-
|
|
|
|
|
- newOption("ir.enabled", true);
|
|
|
|
|
- newOption("ir.rendererSize", 128);
|
|
|
|
|
- newOption("ir.cubemapTextureArraySize", 32);
|
|
|
|
|
- newOption("sslr.enabled", true);
|
|
|
|
|
- newOption("sslr.startRoughnes", 0.2);
|
|
|
|
|
-
|
|
|
|
|
- newOption("dbg.enabled", false);
|
|
|
|
|
- newOption("tm.enabled", true);
|
|
|
|
|
|
|
+ // Scene
|
|
|
|
|
+ newOption("scene.imageReflectionMaxDistance", 30.0);
|
|
|
|
|
+ newOption("scene.earlyZDistance", 10.0, "Objects with distance lower than that will be used in early Z");
|
|
|
|
|
|
|
|
// Globals
|
|
// Globals
|
|
|
newOption("width", 1280);
|
|
newOption("width", 1280);
|
|
|
newOption("height", 768);
|
|
newOption("height", 768);
|
|
|
- newOption("renderingQuality", 1.0); // Applies only to MainRenderer
|
|
|
|
|
- newOption("lodDistance", 10.0); // Distance that used to calculate the LOD
|
|
|
|
|
newOption("tessellation", true);
|
|
newOption("tessellation", true);
|
|
|
- newOption("clusterSizeX", 32);
|
|
|
|
|
- newOption("clusterSizeY", 26);
|
|
|
|
|
- newOption("clusterSizeZ", 32);
|
|
|
|
|
- newOption("imageReflectionMaxDistance", 30.0);
|
|
|
|
|
newOption("clearCaches", false);
|
|
newOption("clearCaches", false);
|
|
|
|
|
|
|
|
// Resource
|
|
// Resource
|
|
|
newOption("rsrc.maxTextureSize", 1024 * 1024);
|
|
newOption("rsrc.maxTextureSize", 1024 * 1024);
|
|
|
newOption("rsrc.textureAnisotropy", 8);
|
|
newOption("rsrc.textureAnisotropy", 8);
|
|
|
- newOption("rsrc.dataPaths", ".");
|
|
|
|
|
|
|
+ newOption("rsrc.dataPaths", ".", "The engine loads assets only in from these paths. Separate them with :");
|
|
|
newOption("rsrc.transferScratchMemorySize", 256_MB);
|
|
newOption("rsrc.transferScratchMemorySize", 256_MB);
|
|
|
|
|
|
|
|
// Window
|
|
// Window
|
|
|
- newOption("glmajor", 4);
|
|
|
|
|
- newOption("glminor", 5);
|
|
|
|
|
- newOption("fullscreenDesktopResolution", false);
|
|
|
|
|
- newOption("debugContext", false);
|
|
|
|
|
- newOption("vsync", false);
|
|
|
|
|
- newOption("debugMarkers", false);
|
|
|
|
|
|
|
+ newOption("window.glmajor", 4);
|
|
|
|
|
+ newOption("window.glminor", 5);
|
|
|
|
|
+ newOption("window.fullscreenDesktopResolution", false);
|
|
|
|
|
+ newOption("window.debugContext", false);
|
|
|
|
|
+ newOption("window.vsync", false);
|
|
|
|
|
+ newOption("window.debugMarkers", false);
|
|
|
|
|
|
|
|
// GR
|
|
// GR
|
|
|
newOption("gr.diskShaderCacheMaxSize", 10_MB);
|
|
newOption("gr.diskShaderCacheMaxSize", 10_MB);
|