Skip to content

Commit 268590a

Browse files
committed
[ray_tracing] replaced single bounce gi with restir path tracing, which is just a work in progress for now
1 parent c31e338 commit 268590a

14 files changed

Lines changed: 1449 additions & 335 deletions

data/shaders/common_resources.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ bool is_taa_enabled() { return any(buffer_frame.taa_jitter_cu
235235
bool is_ray_traced_reflections_enabled() { return buffer_frame.options & uint(1U << 0); }
236236
bool is_ssao_enabled() { return buffer_frame.options & uint(1U << 1); }
237237
bool is_ray_traced_shadows_enabled() { return buffer_frame.options & uint(1U << 2); }
238-
bool is_ray_traced_gi_enabled() { return buffer_frame.options & uint(1U << 3); }
238+
bool is_restir_pt_enabled() { return buffer_frame.options & uint(1U << 3); }
239239
matrix pass_get_transform_previous() { return buffer_pass.values; }
240240
float2 pass_get_f2_value() { return float2(buffer_pass.values._m23, buffer_pass.values._m30); }
241241
float3 pass_get_f3_value() { return float3(buffer_pass.values._m00, buffer_pass.values._m01, buffer_pass.values._m02); }

data/shaders/light_composition.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void main_cs(uint3 thread_id : SV_DispatchThreadID)
5858
distance_from_camera = surface.camera_to_pixel_length;
5959

6060
// add ray traced global illumination (indirect diffuse)
61-
if (is_ray_traced_gi_enabled())
61+
if (is_restir_pt_enabled())
6262
{
6363
float3 gi = tex6.SampleLevel(samplers[sampler_point_clamp], surface.uv, 0).rgb;
6464
light_diffuse += gi * surface.albedo;

data/shaders/ray_traced_gi.hlsl

Lines changed: 0 additions & 283 deletions
This file was deleted.

0 commit comments

Comments
 (0)