mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-05 21:21:06 +00:00
72 lines
2.2 KiB
Markdown
72 lines
2.2 KiB
Markdown
<canvas id="custom" class="canvas" data-fragment-url="examples/moon.frag" data-textures="examples/images/moon-texture.jpg" width="350px" height="350px"></canvas>
|
|
|
|
# The Book of Shaders
|
|
*by [Patricio Gonzalez Vivo](http://patriciogonzalezvivo.com/)*
|
|
|
|
This is a gentle step-by-step guide through the abstract and complex universe of Fragment Shaders.
|
|
|
|
## Contents
|
|
|
|
* [About this book](00/)
|
|
|
|
* Getting started
|
|
* [What is a shader?](01/)
|
|
* [“Hello world!”](02/)
|
|
* [Uniforms](03/)
|
|
* [Running your shader](04/)
|
|
|
|
* Algorithmic drawing
|
|
* [Shaping functions](05/)
|
|
* Colors
|
|
* Shapes
|
|
* Matrices
|
|
* Patterns
|
|
|
|
* Generative designs
|
|
* Random
|
|
* Noise
|
|
* Fractional brownian motion
|
|
|
|
* Image processing:
|
|
* What is a texture?
|
|
* Image operations
|
|
* Kernel convolutions
|
|
* Filters
|
|
* Others effects
|
|
|
|
* Simulation
|
|
* Pingpong
|
|
* Conway
|
|
* Ripples
|
|
* Water color
|
|
* Reaction diffusion
|
|
* Voronoi
|
|
|
|
* 3D graphics
|
|
* Lights
|
|
* Normal-maps
|
|
* Bump-maps
|
|
* Ray marching
|
|
* Environmental-maps (spherical and cube)
|
|
* Reflect and refract
|
|
|
|
* Appendix
|
|
* [How can I navigate this book offline?](90/)
|
|
* [How to use this book in a classroom with RaspberryPi?](91/)
|
|
* [How to print this book?](92/)
|
|
|
|
## About the Author
|
|
|
|
[Patricio Gonzalez Vivo](http://patriciogonzalezvivo.com/) (1982, Buenos Aires, Argentina) is a New York based artist and developer. He explores interstitial spaces between organic and synthetic, analog and digital, individual and collective. In his work he uses code as an expressive language with the intention of developing a better together.
|
|
|
|
Patricio studied and practiced psychotherapy and expressive art therapy. He holds an MFA in Design & Technology from Parsons The New School, where he now teaches. Currently he works as a Graphic Engineer at Mapzen making openSource mapping tools.
|
|
|
|
## Acknowledgements
|
|
|
|
Thanks to my wife [Jen Lowe](http://www.datatelling.com/), for her unconditional support, help and time editing this book.
|
|
|
|
Thanks [Scott Murray](http://alignedleft.com/) for the inspiration and advice.
|
|
|
|
Thanks [Karim Naaji](http://karim.naaji.fr/) for contributing with support, good ideas and code.
|
|
|