diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-09-12 12:03:59 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-09-25 09:44:42 -0500 |
commit | 32c83a228dff7a1f485ab208dff773c3fa74b133 (patch) | |
tree | 31acc26b9cafc711478c287b1e26fe87827830a6 /servers/rendering/renderer_rd/shaders/effects/ssao.glsl | |
parent | 0a9d8f04c10870c0f9f7bbd2e0505edc8494e299 (diff) | |
download | redot-engine-32c83a228dff7a1f485ab208dff773c3fa74b133.tar.gz |
Style: Add `WARNING:` as new comment admonition
Diffstat (limited to 'servers/rendering/renderer_rd/shaders/effects/ssao.glsl')
-rw-r--r-- | servers/rendering/renderer_rd/shaders/effects/ssao.glsl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/servers/rendering/renderer_rd/shaders/effects/ssao.glsl b/servers/rendering/renderer_rd/shaders/effects/ssao.glsl index 8c50bb544d..41a262b2e8 100644 --- a/servers/rendering/renderer_rd/shaders/effects/ssao.glsl +++ b/servers/rendering/renderer_rd/shaders/effects/ssao.glsl @@ -50,11 +50,14 @@ const int num_taps[5] = { 3, 5, 12, 0, 0 }; // #define SSAO_DETAIL_AO_ENABLE_AT_QUALITY_PRESET (1) // whether to use detail; to disable simply set to 99 or similar // -#define SSAO_DEPTH_MIPS_ENABLE_AT_QUALITY_PRESET (2) // !!warning!! the MIP generation on the C++ side will be enabled on quality preset 2 regardless of this value, so if changing here, change the C++ side too +// WARNING: The MIP generation on the C++ side will be enabled on quality preset 2 regardless of +// this value, so if changing here, change the C++ side too. +#define SSAO_DEPTH_MIPS_ENABLE_AT_QUALITY_PRESET (2) #define SSAO_DEPTH_MIPS_GLOBAL_OFFSET (-4.3) // best noise/quality/performance tradeoff, found empirically // -// !!warning!! the edge handling is hard-coded to 'disabled' on quality level 0, and enabled above, on the C++ side; while toggling it here will work for -// testing purposes, it will not yield performance gains (or correct results) +// WARNING: The edge handling is hard-coded to 'disabled' on quality level 0, and enabled above, +// on the C++ side; while toggling it here will work for testing purposes, it will not yield +// performance gains (or correct results). #define SSAO_DEPTH_BASED_EDGES_ENABLE_AT_QUALITY_PRESET (1) // #define SSAO_REDUCE_RADIUS_NEAR_SCREEN_BORDER_ENABLE_AT_QUALITY_PRESET (1) |