Sub topic 7
IOR and Specular controls
This chapter assumes you can create a material, open the Shader Editor, and set Base Color, Metallic and Roughness on a Principled BSDF. It also assumes you know what a socket is. It targets Blender 4.x. Socket names changed in 4.0, so a few names below will not match older versions.
What the specular inputs do
Every non-metal surface reflects some light at its surface, on top of the diffuse color that comes from Base Color. This mirror-like part is the specular reflection. Its strength depends on the viewing angle and on a physical property of the material called the index of refraction.
The Principled BSDF gives you two kinds of control over this reflection:
- IOR (index of refraction) is a physical number. It describes how much light slows down and bends when entering the material. It also sets how strongly the surface reflects when you look at it straight on.
- Specular tint and weight controls are artistic adjustments. They scale or color the reflection without changing the physical model.
In Blender 4.x the specular controls sit in the Specular panel of the node. The inputs are IOR Level, Tint, Anisotropic and Anisotropic Rotation. The IOR input itself is in the main section of the node. Roughness, covered in the previous chapter, decides whether the reflection is sharp or blurry.
IOR
IOR is the ratio of the speed of light in a vacuum to its speed in the material. Air is about 1.0. Higher values mean a stronger reflection and, for transparent materials, more bending of light.
| Material | Typical IOR |
|---|---|
| Water | 1.33 |
| Plastic, acrylic | 1.45 to 1.5 |
| Glass | 1.45 to 1.55 |
| Diamond | 2.42 |
The default IOR on the Principled BSDF is 1.5 in recent versions (older versions used 1.45). For most opaque dielectrics, the default is a good choice. Dielectric means a non-metal: plastic, wood, stone, skin, painted surfaces.
Reflectance at normal incidence
When you look straight at a surface, the fraction of light reflected is given by the Fresnel formula at normal incidence:
F0 = ((n − 1) / (n + 1))²
where n is the IOR. For n = 1.5, F0 = (0.5 / 2.5)² = 0.04. So a typical plastic reflects about 4% of the light straight on. For water (n = 1.33), F0 is about 2%. For diamond (n = 2.42), it is about 17%.
This is why raising IOR on an opaque material makes it look glossier. It also explains why most everyday non-metal objects have a similar, subtle highlight. Their IORs cluster near 1.5.
Fresnel at grazing angles
As the viewing angle approaches the surface plane, reflection rises toward 100% for every material. This is the Fresnel effect. It is why a lake reflects the sky strongly near the horizon but lets you see the bottom when you look down. The Principled BSDF models this automatically. You do not need a separate Fresnel node for ordinary materials.
IOR Level and Tint
IOR Level is the artistic control in Blender 4.x. It replaced the old Specular input from 3.x. The value 0.5 is neutral and leaves the physical reflectance from IOR unchanged. Values below 0.5 reduce the reflection, and values above 0.5 increase it. At 0, the specular reflection is removed. At 1, it is doubled.
Use IOR Level when you want to dim or boost a reflection on a surface without changing the real IOR. A common use is a map: feed a grayscale image into IOR Level to make dirt or dust patches reflect less than clean areas. Set that image to Non-Color, because it holds data and not a visible color.
Tint colors the reflection at normal incidence. It is white by default, which gives a colorless highlight. A non-white tint mixes a color into the reflection at direct viewing angles, while grazing angles stay white. Real dielectrics have colorless reflections, so keep Tint white for plastic, wood and stone. Tint is more useful for effects like car paint with a colored sheen.
For metals, the setting behaves differently. With Metallic at 1, the reflection color comes from Base Color, and the Tint input tints the edge reflection (the F82 tint) in Blender 4.x. The IOR input has no effect on a fully metallic surface. Adjust Base Color to change the metal's reflection.
How IOR interacts with Metallic
Metallic blends between a dielectric model and a metal model. At 0, IOR and IOR Level fully control the specular reflection. At 1, the metal model takes over and IOR is ignored. Values between are a blend. In real life, a surface is either metal or not, so keep Metallic at 0 or 1 except at transitions such as rust edges, where a texture mask produces intermediate values.
import bpy
mat = bpy.data.materials.new(name="Acrylic")
mat.use_nodes = True
bsdf = mat.node_tree.nodes.get("Principled BSDF")
bsdf.inputs["Base Color"].default_value = (0.1, 0.3, 0.8, 1.0)
bsdf.inputs["Metallic"].default_value = 0.0
bsdf.inputs["Roughness"].default_value = 0.2
bsdf.inputs["IOR"].default_value = 1.49
bsdf.inputs["IOR Level"].default_value = 0.5
obj = bpy.context.active_object
if obj is not None and obj.type == 'MESH':
obj.data.materials.append(mat)This script builds a glossy blue acrylic. IOR is 1.49, close to real acrylic, and IOR Level stays at the neutral 0.5.
IOR in transparent materials
For glass and other transmissive materials, IOR also controls refraction, the bending of light as it passes through. The Transmission chapter covers this in detail. Two points matter here:
- A surface set to IOR 1.0 does not bend light. Thin objects look clear but flat, as if nothing were there.
- Refraction depends on real geometry. A flat window pane with IOR 1.5 looks nearly the same as 1.0, because the light enters and leaves at parallel faces. The effect is visible on curved objects such as a glass ball.
Common mistakes
- Using IOR to make a surface shinier. Raising IOR to 3 or 4 on plastic creates an unreal look. Lower Roughness for a sharper highlight, or change IOR Level for a stronger one.
- Looking for the Specular input in 4.x. Scripts written for 3.x that set
inputs["Specular"]fail with a KeyError in 4.0 and later. UseIOR Levelinstead. The old values do not map exactly, so check the result by eye. - Treating IOR Level as IOR. They are different inputs. IOR is physical, IOR Level is a multiplier.
- Expecting IOR to change metals. At Metallic 1, IOR has no effect.
- Loading a roughness or level map as sRGB. Data maps need Non-Color or the values are wrong.
Choosing values
- Plastic, paint, wood, stone, skin: IOR near 1.4 to 1.5, IOR Level 0.5, Tint white.
- Water: IOR 1.33.
- Fully metallic surfaces: ignore IOR. Set Base Color and Roughness.
- Surfaces that should look dull in places, such as dust: lower IOR Level with a mask, not IOR itself.
Exercise
A scene contains a dielectric material with IOR 1.5. Using F0 = ((n − 1) / (n + 1))², what fraction of light does it reflect when viewed straight on? You then see a script that fails with a KeyError on inputs["Specular"] in Blender 4.2. Which input should replace it, and what value leaves the reflection unchanged?
Show answer
F0 = (0.5 / 2.5)² = 0.04, so about 4%. The replacement input is "IOR Level", and 0.5 leaves the reflection from IOR unchanged.
Exercise
You want a metal surface to look more reflective. A colleague suggests raising IOR from 1.5 to 2.5 with Metallic at 1. Will it work? What should you change instead?
Show answer
No. At Metallic 1 the metal model is used and IOR is ignored. Change Base Color (which sets the metal's reflection color) and Roughness instead.