hey2d (58)in #coding • 26 days agoGLSL Lesson 4: Reshaping Light and Shadow with pow()GLSL Lesson 4: Reshaping Light and Shadow with pow() Previous Lessons Lesson 1 Your First Shader: Painting the Entire Screen One Color In the first lesson, we learned…hey2d (58)in #tutorial • 26 days agoGLSL Lesson 3: Understanding clamp() by Breaking and Fixing ColorsIn the first lesson, we learned the simplest thing a fragment shader can do: paint every pixel the same color. In the second lesson, we moved beyond a flat color and started…hey2d (58)in #tutorial • 26 days agoYour First Shader: Painting the Entire Screen One ColorSo far we have been looking at code and breaking it apart piece by piece. That approach is useful, but there is another way to learn shaders that is often more effective:…hey2d (58)in #learning • 27 days agoThe Strange Case of vUv.st: Why GLSL Keeps Swapping Coordinate NamesOne of the recurring themes in learning GLSL is encountering pieces of code that seem completely unnecessary. You learn about vectors. You learn about coordinates. You…hey2d (58)in #tutorial • 27 days agoLesson 9 — HSB: When Color Stops Being Fixed and Starts Becoming a SpaceIf gradients were the first time color became a relationship, HSB is where color starts behaving like a coordinate system. This is lesson 9 in the series, and it sits right…hey2d (58)in #learning • 27 days agoGradients, Distance, and Why Shaders Start With a LineMost people think shaders begin with shapes, or light, or noise. But they don’t. They begin with a line, and what you choose to do with distance along that line. This code…hey2d (58)in #learning • 28 days agoThe Strange Case of vUv.st: Why GLSL Keeps Swapping Coordinate NamesOne of the recurring themes in learning GLSL is encountering pieces of code that seem completely unnecessary. You learn about vectors. You learn about coordinates. You…hey2d (58)in #learning • 28 days agoWhen Color Learns to Breathe — A Shader That Swaps Mood Over TimeLesson: 8 There’s something strangely alive about this kind of shader. Nothing moves, nothing is drawn in the traditional sense, yet the screen never stays the same. It quietly…hey2d (58)in #learning • 28 days agoCreating Smooth Value Noise in GLSLIf you filled your screen with completely random values, the result would look like television static. Every pixel would be different from the one beside it. Nature rarely looks like that. Clouds changehey2d (58)in #learning • 28 days agoColors in GLSL: A Beginner’s Guide to Shaders and Color ControlColor in GLSL is one of the first things that makes shader programming feel alive. You go from abstract math to something visible, expressive, and instantly creative. At its…hey2d (58)in #learning • 29 days agoUnderstanding UV in GLSL: The Key to Mapping Space in ShadersUV coordinates are one of the most fundamental ideas in GLSL, yet they are often misunderstood when you first start working with shaders. At their core, UVs are simply a way to…hey2d (58)in #tutorial • 29 days agoAre Vector Components Constants in GLSL? Understanding What Vectors Really Are - TUTORIAL 7One question almost every shader beginner asks is whether vector components such as .r , .g , .b , .x , .y , and .z are fixed values or special constants. The short…hey2d (58)in #learning • 29 days agoTextures and Swizzling in GLSL: How Shaders Read and Rearrange Data When most people start learning shaders, textures seem straightforward. They are images made up of pixels. But in GLSL, textures are much more than images. They are data…hey2d (58)in #learning • 29 days agoTextures and Swizzling in GLSL: How Shaders Read and Rearrange Data : Lesson 6When most people start learning shaders, textures seem straightforward. They are images made up of pixels. But in GLSL, textures are much more than images. They are data…hey2d (58)in #tutorial • 29 days agoDrawing a Diagonal Line with GLSLThis is the fourth post in the GlSL learning series. Learning GLSL as a Beginner Understanding gl-Position: My First Real Vertex Shader Fragment Shaders Made…hey2d (58)in #learning • 29 days agoDrawing Curves with Math Using `pow()` - lesson 5 - GLSLThis is the fifth post in the GLSL learning series. Previous posts: Learning GLSL as a Beginner Understanding gl_Position : My First Real Vertex Shader Fragment…hey2d (58)in #coding • last monthCreating Procedural Galaxies and Nebulas in GLSLLook at images captured by space telescopes. Galaxies are filled with glowing clouds of gas and dust. Some regions appear bright blue. Others glow purple, pink, or…hey2d (58)in #coding • last monthCreating a Procedural Night Sky and Stars in GLSLWhen you look into the night sky, the stars seem randomly scattered. Some are bright. Some are barely visible. Some appear grouped together while others sit alone.…hey2d (58)in #coding • last monthCreating Procedural Clouds in GLSLLook at the sky on a clear day. Clouds rarely have sharp edges. They slowly grow, merge together, drift across the horizon, and disappear. If you look closely, you'll…hey2d (58)in #coding • last monthAdding Reflections and Highlights to Procedural Water in GLSLThink about standing beside a lake on a sunny day. The water is not one solid color. Bright highlights appear where sunlight hits the waves. Some parts look dark. Others…