Skip to content

Commit d6567ca

Browse files
committed
Update screenspace_water.h
1 parent d795551 commit d6567ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Game/Resources_SoC_1.0006/gamedata/shaders/r3/screenspace_water.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ float3 SSFX_ssr_water_ray(float3 ray_start_vs, float3 ray_dir_vs, float noise, u
3737
float ray_depthstart = SSFX_get_depth(ssr_ray.r_start, iSample);
3838

3939
// Ray-march
40-
[unroll (q_steps[G_SSR_WATER_QUALITY].x)]
40+
[unroll (q_steps[G_SSR_WATER_QUALITY].x)] //[loop]
4141
for (int st = 1; st <= q_steps[G_SSR_WATER_QUALITY].x; st++)
4242
{
4343
// Ray out of screen...
@@ -71,6 +71,7 @@ float3 SSFX_ssr_water_ray(float3 ray_start_vs, float3 ray_dir_vs, float noise, u
7171
prev_sign = -1;
7272

7373
// Binary Search
74+
[unroll (q_steps[G_SSR_WATER_QUALITY].y)] //[loop]
7475
for (int x = 0; x < q_steps[G_SSR_WATER_QUALITY].y; x++)
7576
{
7677
// Half and flip depending on depth difference sign

0 commit comments

Comments
 (0)