Sub topic 5
Base Color
This chapter assumes you can select an object, create or assign a material, and open the Shader Editor. You should also know that a shader node is a block that calculates part of a material. We will focus on the Base Color input of the Principled BSDF.
What Base Color controls
Base Color is the surface color before lighting, reflections, shadows, and other shader effects change its appearance. A red object may look darker in shadow, brighter under a lamp, or tinted by reflected surroundings, but its Base Color can remain the same red.
Base Color accepts an RGB color. RGB means red, green, and blue. The fourth value, alpha, is available in the color data, but it does not make a material transparent by itself. Transparency also requires material settings and an appropriate shader connection.
For a simple material, set Base Color directly on the Principled BSDF:
import bpy
material = bpy.data.materials.new(name="BluePlastic")
material.use_nodes = True
bsdf = material.node_tree.nodes.get("Principled BSDF")
bsdf.inputs["Base Color"].default_value = (0.03, 0.18, 0.8, 1.0)
bsdf.inputs["Roughness"].default_value = 0.35
object = bpy.context.active_object
if object is not None and object.type == "MESH":
if material.name not in object.data.materials:
object.data.materials.append(material)The values range from 0.0 to 1.0. The example uses a strong blue with full alpha. The color still depends on the scene lights, render engine, view transform, and display.
Direct colors and color textures
You can connect another node to Base Color instead of entering one fixed value. A Color Ramp can remap colors, while an Image Texture can provide color from an image.
A color image should normally use the sRGB color space. sRGB is a display-oriented encoding designed for ordinary color images. Blender converts it for shader calculations. Do not mark a color image as Non-Color, because that can make the result look too dark or otherwise incorrect.
UV coordinates determine which part of an image appears on each face. If the color pattern is stretched, rotated, or misplaced, inspect the object's UV map rather than changing Base Color.
Common errors
- A nearly black Base Color may be correct but hard to see under weak lighting.
- A texture may look washed out if its color space or image interpretation is wrong.
- A material may appear unchanged when the object has multiple material slots and the edited material is not assigned to the selected faces.
- Changing Base Color does not create texture detail. Use image textures, procedural nodes, or bump information for detail.
Exercise
Why can a red Base Color appear almost black in a render, and what should you check first?
Show answer
Lighting, exposure, and the view transform can reduce the visible brightness. Check those settings before replacing the Base Color.