Skip to content

Commit

Permalink
[SSR] Reduce ray steps and binary search steps to something more sane
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Oct 22, 2023
1 parent b5ec515 commit d482ccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/shaders/ssr.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//====================

static const float g_ssr_max_distance = 100.0f;
static const uint g_ssr_max_steps = 45;
static const uint g_ssr_binary_search_steps = 24;
static const float g_ssr_thickness = 0.0001f;
static const uint g_ssr_max_steps = 16;
static const uint g_ssr_binary_search_steps = 12;
static const float g_ssr_thickness = 0.01f;
static const float g_ssr_roughness_threshold = 0.8f;

float compute_alpha(uint2 screen_pos, float2 hit_uv, float v_dot_r)
Expand Down

0 comments on commit d482ccd

Please sign in to comment.