Skip to content

Commit 123c454

Browse files
committed
Fix minor issue shadow
1 parent 9b5e286 commit 123c454

File tree

14 files changed

+7
-7
lines changed

14 files changed

+7
-7
lines changed

booksamples/appendix-01/resources/shaders/shadow_frg.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void main()
4545
// Adjust moments to avoid light bleeding
4646
float dx = dFdx(depth);
4747
float dy = dFdy(depth);
48-
//moment2 += 0.25 * (dx * dx + dy * dy);
48+
moment2 += 0.25 * (dx * dx + dy * dy);
4949

5050
outFragColor = vec2(moment1, moment2);
5151
}
Binary file not shown.

booksamples/appendix-02/resources/shaders/shadow_frg.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void main()
4545
// Adjust moments to avoid light bleeding
4646
float dx = dFdx(depth);
4747
float dy = dFdy(depth);
48-
//moment2 += 0.25 * (dx * dx + dy * dy);
48+
moment2 += 0.25 * (dx * dx + dy * dy);
4949

5050
outFragColor = vec2(moment1, moment2);
5151
}
Binary file not shown.

booksamples/chapter-16/resources/shaders/shadow_frg.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void main()
4545
// Adjust moments to avoid light bleeding
4646
float dx = dFdx(depth);
4747
float dy = dFdy(depth);
48-
//moment2 += 0.25 * (dx * dx + dy * dy);
48+
moment2 += 0.25 * (dx * dx + dy * dy);
4949

5050
outFragColor = vec2(moment1, moment2);
5151
}
Binary file not shown.

booksamples/chapter-17/resources/shaders/shadow_frg.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void main()
4545
// Adjust moments to avoid light bleeding
4646
float dx = dFdx(depth);
4747
float dy = dFdy(depth);
48-
//moment2 += 0.25 * (dx * dx + dy * dy);
48+
moment2 += 0.25 * (dx * dx + dy * dy);
4949

5050
outFragColor = vec2(moment1, moment2);
5151
}
Binary file not shown.

booksamples/chapter-18/resources/shaders/shadow_frg.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void main()
4545
// Adjust moments to avoid light bleeding
4646
float dx = dFdx(depth);
4747
float dy = dFdy(depth);
48-
//moment2 += 0.25 * (dx * dx + dy * dy);
48+
moment2 += 0.25 * (dx * dx + dy * dy);
4949

5050
outFragColor = vec2(moment1, moment2);
5151
}
Binary file not shown.

0 commit comments

Comments
 (0)