File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 22Tired 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
2439Sometimes, I want to displace mesh vertices in a vertex shader. After doing this, the normals of a surface should change:
You can’t perform that action at this time.
0 commit comments