The Book of Shaders
thebookofshaders.com
thebookofshaders.com
Even the outdated book about Cg language has good content regarding shading in general.
But if Patricio ever puts it in an actual book, I would gladly buy it.
It’s such a great intro to shaders. Please finish it!!!!
Understanding the basics of shaders has been helpful for some audio-visual tchotchkes that I have enjoyed building. Hope to learn more, over time. And I'd really love to see more of the chapters that are planned, but unavailable.
Is there a changelog that will tell us what parts of the book were updated and when they were updated?
edit – it's all on GitHub, which is also helpful given how slow the Book of Shaders website is right now: https://github.com/patriciogonzalezvivo/thebookofshaders
I hope they are able to complete the rest of the chapters in the future.
I put this site on the same level as Real Time Rendering, my favourite rendering reference book.
Perhaps all the text is rendered via JS and re-rendering in an infinite loop where the CSS switches the padding of the div surrounding the text back and forth by ~5px at each point in the loop?
Many (including myself) have tied into window.requestAnimationFrame(...) recursively forever.
This lets the page breathe, but always call back into your main game loop to update the webgl render context/canvas.
Then the JS might be running wild in the background while that is resolved. Make sure you have WebGL enabled and are using a new version of Firefox/Chrome.
Hope that helps!
https://www.youtube.com/playlist?list=PLlrATfBNZ98dC-V-N3m0G...
Also I don't know much about WebGL and am quite curious how this works. Are they compiling these shaders locally in the browser?
Yes, shader compilation has always been a part of the OpenGL API itself. A conforming implementation must include a compiler.
Most of the content out there on shaders is either too mathematical or too specific
Example: https://shadergif.com/gifs/324