Hacker News new | ask | show | jobs
by dclowd9901 2779 days ago
What’s some good reading for a basic and well-explained entry into GL and shaders. I feel like so many tuts gloss over really important stuff. I’ve never written a shader.

As an aside, I’m sorry someone stole this from you and used it unattributed.

2 comments

This got me started: https://webglfundamentals.org/

You've probably come across it though, as it does seem to gloss over some basic stuff. But it does cover the basics pretty well, just gotta keep an eye for details and seemingly unimportant one-liners that turn out to be fundamental.

It also takes some googling for deeper explanation of some functions, which often result on Stack Overflow answers by the author himself.

Dealing with the WebGL API itself is a bit... let's say tricky, though. But working with shaders for me is a joy.

This also seems promising, though I only skimmed over it: https://thebookofshaders.com/

And also, look into https://shadertoy.com/. Both for using the shaders there as example and as a playground.

Unless they made the edit very recently, he is credited on the credits page.
I am credited for the "menu code" and "inspiration", though, hahah

But it doesn't matter, I posted the code for it to be used, I'm glad to see it in the wild.