|
|
@ -120,7 +120,19 @@ For example, \`//#include "includes/iq-primitives.frag"\` includes the primitive
|
|
120
|
120
|
|
|
121
|
121
|
## Resources
|
|
122
|
122
|
|
|
123
|
|
...
|
|
|
123
|
If you want to learn by observing, take a look at \`colors.frag\`, \`colors2.frag\`, \`mouse.frag\` and then \`default.frag\`. Try the commented out examples in order, and figure out what they do. The signed distance functions talk listed below should provide enough background for starting to figure things out on your own.
|
|
|
124
|
|
|
|
125
|
- GLSL
|
|
|
126
|
- The [WebGL 1.0 reference card](http://www.khronos.org/files/webgl/webgl-reference-card-1_0.pdf) is very handy if you already know a bit about GLSL.
|
|
|
127
|
- Signed Distance Functions
|
|
|
128
|
- [How to Create Content with Signed Distance Functions](https://www.youtube.com/watch?v=s8nFqwOho-s), by Johann Korndorfer is a good introduction
|
|
|
129
|
- The [Distance Estimated 3D Fractals](http://blog.hvidtfeldts.net/index.php/2011/06/distance-estimated-3d-fractals-part-i/) series is also an excellent introduction to SDFs. Later entries also handle lighting and rendering fractals, but you can just read the first entries to learn about SDFs.
|
|
|
130
|
- Iñigo Quilez has written a good overview with [distance functions for various geometrical objects](http://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm)
|
|
|
131
|
- [Shadertoy](http://shadertoy.com/) has a lot of fascinating shaders, and is a direct inspiration of this tool
|
|
|
132
|
- Inspiration
|
|
|
133
|
- Shadertoy
|
|
|
134
|
- [pouët.net](http://www.pouet.net/) and the demoscene in general
|
|
|
135
|
- ...
|
|
124
|
136
|
|
|
125
|
137
|
## Fin
|
|
126
|
138
|
|