@@ -106,7 +106,7 @@ __ https://www.shadertoy.com/view/4tsyWn
106
106
107
107
Figure
108
108
109
- | Difference (A not B )
109
+ | Difference (B not A )
110
110
| `CSG-difference-2.py <code/chapter-08/csg-difference-2.py>`_ / `Shadertoy`__
111
111
112
112
__ https://www.shadertoy.com/view/XtsyWn
@@ -116,7 +116,7 @@ __ https://www.shadertoy.com/view/XtsyWn
116
116
117
117
Figure
118
118
119
- | Difference (B not A )
119
+ | Difference (A not B )
120
120
| `CSG-difference-1.py <code/chapter-08/csg-difference-1.py>`_ / `Shadertoy`__
121
121
122
122
__ https://www.shadertoy.com/view/4llyWn
@@ -495,17 +495,18 @@ to say that the precision of the distance is directly correlated with the size
495
495
of your texture...
496
496
497
497
498
- .. figure :: movies/chapter-08/sdf -marker.mp4
498
+ .. figure :: movies/chapter-08/texture -marker.mp4
499
499
:loop:
500
500
:autoplay:
501
501
:controls:
502
502
:figwidth: 30%
503
503
504
504
Figure
505
505
506
- SDF marker (see `sdf-marker.py <code/chapter-08/sdf-marker.py >`_)
506
+ SDF textured marker (see `texture-marker.py
507
+ <code/chapter-08/texture-marker.py> `_)
507
508
508
- The fragment shader reads (see also `sdf -marker.py <code/chapter-08/sdf -marker.py >`_):
509
+ The fragment shader reads (see also `texture -marker.py <code/chapter-08/texture -marker.py >`_):
509
510
510
511
.. code :: glsl
511
512
@@ -551,7 +552,6 @@ the right, there is a smarter solution using only two triangles.
551
552
552
553
Solution: `quiver.py <code/chapter-08/quiver.py >`_
553
554
554
- SDF-light-shadow.webm
555
555
556
556
Light and shadows
557
557
+++++++++++++++++
@@ -569,9 +569,9 @@ Light and shadows
569
569
570
570
571
571
As explained before, the `shadertoy <https://www.shadertoy.com >`_ website is a
572
- great teaching resources and you can learn a lot by reading the sources
573
- accompanying a demo. As an exercise, have a look at this `wonderful demo
574
- <https://www.shadertoy.com/view/4dfXDn> `_ by Marteen that show two dimensional
572
+ great resource and you can learn a lot by reading the sources accompanying each
573
+ demo. As an exercise, have a look at this `wonderful demo
574
+ <https://www.shadertoy.com/view/4dfXDn> `_ by Marteen that shows two dimensional
575
575
signed distance field functions with light and shadows.
576
576
577
- Simply gorgeous.
577
+ Simply gorgeous...
0 commit comments