Where to learn to write shaders for Blender

Is there anywhere on the internet where one can learn to write Blender shaders from scratch?

Exactly what do you mean by “write Blender shaders”?

Do you just mean creating procedural textures, or you want something heavier like creating new closures?

Creating new closures. I’m asking out of curiosity.

I would start by readind “Physically Based Rendering: From Theory To Implementation”, from Matt Pharr, Wenzel Jakob, and Greg Humphreys.

The only way to write shaders “from scratch” in blender is AFAIK the OpenShadingLanguage Docs-Blender Manual: Render → Shader Nodes (OSL) …
Everthing else is “just” using the provided shaders and do some “mixing” with them in the Shader (nodes) Editor.

And to learn a shading language…

Thought is not possible to write closures with OSL… just procedural textures and combinations of the existent closures.

1 Like

Good point…