Skip to content

Commit 42f10c9

Browse files
authored
Add code template links
1 parent ecc55ef commit 42f10c9

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
Tired of doing math to get normals in your vertex shader? Same. Use this library to write your function once and generate derivatives automatically!
33

44
- <a href="#demo">Demo</a>
5+
- <a href="#starter-code">Starter Code</a>
56
- <a href="#why">Why?</a>
6-
- <a href="#eg-1d-plane-displacement">e.g. 1D Plane Displacement</a>
7-
- <a href="#eg-1d-mesh-displacement">e.g. 1D Mesh Displacement</a>
8-
- <a href="#eg-3d-mesh-displacement">e.g. 3D Mesh Displacement</a>
97
- <a href="#api-usage">API Usage</a>
108
- <a href="#inputs-and-outputs">Inputs and Outputs</a>
119
- <a href="#operations">Operations</a>
@@ -19,6 +17,23 @@ Tired of doing math to get normals in your vertex shader? Same. Use this library
1917

2018
<a href="https://editor.p5js.org/davepagurek/sketches/sQZGnfyKt">Live version in the p5 editor</a>
2119

20+
### Starter Code
21+
22+
<table>
23+
<tr>
24+
<th>Autodiff + Sphere mapped lighting</th>
25+
<th>Autodiff + Sphere mapped lighting + bump mapping</th>
26+
</tr>
27+
<tr>
28+
<td><a href="https://editor.p5js.org/davepagurek/sketches/PN4MnpC15">P5 Editor template</a></td>
29+
<td><a href="https://editor.p5js.org/davepagurek/sketches/hJEHTTXUN">P5 Editor template</a></td>
30+
</tr>
31+
<tr>
32+
<td><a href="https://codepen.io/pen/?template=BaRbezz">CodePen template</a></td>
33+
<td><a href="https://codepen.io/pen/?template=poPYmda">CodePen template</a></td>
34+
</tr>
35+
</table>
36+
2237
## Why?
2338

2439
Sometimes, I want to displace mesh vertices in a vertex shader. After doing this, the normals of a surface should change:

0 commit comments

Comments
 (0)