The Specular Layer

The Specular Layer

The specular layer represents the second layer of my uber-shader where the reflected light varies between rough and sharp. Reflected light can consist of light from punctual light sources, image sources, and/or reflections of other objects. In general, if the…

The Diffuse Layer

The Diffuse Layer

The diffuse layer represents the bottom-most layer of my uber-shader where light is reflected almost uniformly across all directions, usually because the surface is extremely rough and light does not penetrate the surface to any noticeable effect. Reflected light can…

The Layered Model

The Layered Model

For my uber-shader, I have gone with a ‘layered’ style model so that I may represent many different types of common materials easily. I’ve structured it so that some familiar, but old, concepts are represented, yet in a way that…

Minecraft Cabin Render

Minecraft Cabin Render

After wrapping up a large portion of the code of my ubershader, I wanted to try it out in a production-friendlier environment to look for possible improvements. I did find a few bugs and quirks, but all is better now!…

Image-Based Lighting

Image-Based Lighting

What is it? What you see above is The Shaderball lit by an image, not by standard 3D light sources. I’m going to talk about the idea (and implementation) of using images of environments to light 3D scenes. Two other…

First Glimpse

First Glimpse

I’ve been writing this shader for a few weeks now, but I hadn’t thought to blog about it (or anything, for that matter) until now. That’s probably a good thing; I’m learning a lot as I go along, so there’s…