Back to skills
SKILL.md
Strata Materials
ASecurityBuilds zero-external-asset procedural Blender shader graphs across three isolated passes: Stage 2 flat linear PBR albedo, Stage 3 multi-scale Object-space surface imperfections and micro-relief, and Stage 4 OpenPBR BSDF roughness, metallic, damp porosity darkening, and planar puddle normal flattening. Use when executing Stages 2, 3, or 4 of strata, creating procedural materials in Blender, adding weathering or grime nodes, or building wet asphalt and puddle shaders.
- 5 stars
- 0 votes
- 0 copies
- 0 views
- Added December 5, 2026
Works with
Security analysis
100/100npx -y skills add naddrzz/blender-strata --skill strata-materials --agent claude-codeAre you the author of Strata Materials?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/naddrzz-strata-materials)---
name: strata-materials
description: "Builds zero-external-asset procedural Blender shader graphs across three isolated passes: Stage 2 flat linear PBR albedo, Stage 3 multi-scale Object-space surface imperfections and micro-relief, and Stage 4 OpenPBR BSDF roughness, metallic, damp porosity darkening, and planar puddle normal flattening. Use when executing Stages 2, 3, or 4 of strata, creating procedural materials in Blender, adding weathering or grime nodes, or building wet asphalt and puddle shaders."
---
# Strata Stages 2, 3, and 4: Procedural albedo, texture, and PBR shading
Never wire an entire procedural shader in one pass. Specular reflections disguise broken albedo values, and mirror puddles hide uniform noise scales. Run Stages 2, 3, and 4 as **three sequential shader passes**, rendering and checking each gate before wiring the next set of sockets. Geometry and object transforms stay read-only across all three stages.
---
## Stage 2: Material slot allocation and flat linear albedo (`Base Colour`)
### 1. Convert sRGB picks to scene-linear RGB
Blender's `Principled BSDF` `Base Color` socket expects **scene-linear RGB**, not display sRGB. Pasting `(0.5, 0.5, 0.5)` directly into `Base Color` renders as `73%` display chalk white and blows out Stage 5 lighting. Convert sRGB values to linear and keep linear luminance inside **`[0.02, 0.82]`** because no physical surface absorbs or reflects 100% of incident light:
```python
def srgb_to_linear(c: float) -> float:
return c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4
```
| Material class | Linear luminance band | Reference linear RGB `(R, G, B)` |
| --- | --- | --- |
| Fresh or weathered asphalt, charcoal rubber | `0.03 - 0.07` | `(0.042, 0.044, 0.048)` |
| Dark soil, wet timber, cast iron oxide | `0.06 - 0.12` | `(0.085, 0.068, 0.055)` |
| Fired red clay brick, terracotta, rust | `0.10 - 0.22` | `(0.210, 0.082, 0.052)` |
| Aged poured concrete, mortar, limestone | `0.18 - 0.34` | `(0.245, 0.240, 0.228)` |
| Painted plaster, bleached wood (never `1.0`) | `0.45 - 0.78` | `(0.620, 0.605, 0.575)` |
### 2. Lock Stage 2 specular and roughness to zero-glare defaults
In Blender 5.x, `mat.node_tree` exists automatically on `bpy.data.materials.new()` (check `if mat.node_tree is None: mat.use_nodes = True` to avoid Blender 5.3+ deprecation warnings). On every `Principled BSDF` in Stage 2, set:
- `Roughness = 1.0`
- `Metallic = 0.0`
- `Specular IOR Level = 0.0`
- `Coat Weight = 0.0`
Even the default `Specular IOR Level = 0.5` reflects sky light and shifts perceived brightness by 2 to 4 stops at grazing angles, hiding broken diffuse value hierarchy.
**Stage 2 gate:** Run `stage_gate_audit.py` (`TARGET_STAGE = 2`), render `stage_02_albedo.png`, and verify that every structural surface separates from its neighbors by diffuse value or hue alone.
---
## Stage 3: Multi-scale surface imperfection and micro-relief (`Texture`)
Stage 3 breaks CG uniformity by wiring procedural coordinate networks into `Base Color` and `Normal` (`ShaderNodeBump`), keeping `Roughness = 1.0` until Stage 4.
### 1. Coordinate space decision tree
```text
Does the surface have manufactured directionality (wood planks, brick courses, brushed steel)?
├── Yes -> Align local axes or unwrap UVs; wire `Texture Coordinate (UV or Object)` -> `Mapping` with anisotropic `Scale`
└── No (concrete, asphalt, stone, plaster, rust, soil)
└── Always wire `Texture Coordinate (Object)` -> `Mapping` (never `Generated`)
```
`Generated` normalizes `[0..1]` per bounding box, stretching concrete grain 10x wider on a 10 m wall than on a 1 m curb. `Object` coordinates on Stage 1 normalized meshes (`scale == 1.0`) keep grain density consistent in real-world meters across the whole scene.
### 2. Stack three spatial frequency bands with Blender 5.x `ShaderNodeTexNoise`
> **Blender 4.1+ and 5.x API rule:** `ShaderNodeTexMusgrave` was removed and merged into `ShaderNodeTexNoise`. Never call `nodes.new('ShaderNodeTexMusgrave')`. Instantiate `ShaderNodeTexNoise` and set `noise.noise_type` to `'FBM'`, `'MULTIFRACTAL'`, `'HYBRID_MULTIFRACTAL'`, `'RIDGED_MULTIFRACTAL'`, or `'HETERO_TERRAIN'`.
Combine three non-overlapping frequency octaves so materials hold up from camera distance and in close-up:
1. **Macro weathering (`Scale = 0.3-1.5`, `noise_type = 'HYBRID_MULTIFRACTAL'`):** Broad clouding, damp streaks, and +-15% tonal variation around the Stage 2 base color via `ShaderNodeMix` (`data_type = 'RGBA'`). Never overwrite the Stage 2 palette.
2. **Meso structure (`Scale = 4.0-18.0`):** Aggregate stones (`ShaderNodeTexVoronoi`, `feature = 'F1'` or `'DISTANCE_TO_EDGE'` for hairline cracks), masonry courses (`ShaderNodeTexBrick`), or runoff bands (`ShaderNodeTexWave`).
3. **Micro grain (`Scale = 60.0-250.0`, `Detail = 6.0-10.0`):** Pores, sand aggregate, and cast surface relief.
### 3. Anchor grime to geometry cavities and cap `Bump` distance at `8 mm`
Random noise floating uniformly over flat faces still looks procedural. Bind wear masks to topology:
- **Concave dirt:** `ShaderNodeAmbientOcclusion` (`samples = 16`, `distance = 0.25`, `inside = False`) -> `ShaderNodeValToRGB` (`0.0-0.55`), multiplying `0.45x` grime into wall-floor joints and crevices.
- **Upward settling (dust, moss, soot):** `ShaderNodeNewGeometry.outputs["Normal"]` -> `ShaderNodeSeparateXYZ.outputs["Z"]` -> `Map Range (0.4 -> 0.95)` isolating upward ledges.
- **Physical `Bump` ceiling (`Distance <= 0.008`):** Wire combined meso and micro height (`0..1`) into `ShaderNodeBump.inputs["Height"]` with **`Distance = 0.002-0.008` (`2-8 mm`)** and `Strength = 0.30-0.65`. Blender's `Distance` is in meters; leaving the default `1.0` simulates 1-meter spikes and produces black shadow-terminator artifacts.
**Stage 3 gate:** Run `stage_gate_audit.py` (`TARGET_STAGE = 3`), render `stage_03_texture.png`, and confirm zero uniform patches and clean shadow terminators.
---
## Stage 4: OpenPBR micro-surface and wetness calibration (`Shading`)
Stage 4 unlocks `Specular IOR Level`, `Roughness`, `Metallic`, `IOR`, and `Coat` on Blender 5.x's OpenPBR `Principled BSDF`.
### 1. Dielectric vs conductor rules
- **Dielectrics (stone, asphalt, wood, paint, water, plastic):** `Metallic = 0.0`, `Specular IOR Level = 0.5`, `IOR = 1.45-1.55` (`1.333` for water).
- **Bare conductors (steel, copper, brass, aluminum):** `Metallic = 1.0`, `Base Color` carries specular tint (`0.55-0.90` linear), `Roughness = 0.15-0.45`.
- **Oxidized or painted metal:** Drive `Metallic` through a tight `ShaderNodeValToRGB` (`0.48-0.52` ramp). Every point is either bare metal (`1.0`) or dielectric rust/paint (`0.0`), never `0.5` half-metal.
- **Modulated roughness:** Map Stage 3 meso/micro noise through `ShaderNodeMapRange` into `Roughness` (for example, dry concrete `0.78 -> 0.92`, worn paint `0.32 -> 0.58`) so specular highlights break up across surfaces.
### 2. Three-zone wetness and planar puddle graph
Water alters surfaces through two distinct optical mechanisms depending on film depth. Encode three regimes on `ground_plane` and lower `structural_architecture` using `world_normal_z = SeparateXYZ(Geometry.Normal).Z` combined with a low-frequency `Object` noise mask (`wet_field`, biased by `liquid_mask_zone`):
```text
Evaluate pixel `wet_field` [0..1] and `world_normal_z` [-1..1]:
├── 1. Dry porous (`wet_field < 0.35`)
│ ├── Base Color = Stage 3 dry color
│ ├── Roughness = 0.75 - 0.92
│ └── Normal = Stage 3 Bump Normal
├── 2. Damp porous / thin film (`0.35 <= wet_field < 0.72` or vertical wall runoff)
│ ├── Base Color = Stage 3 dry color * 0.42 (total internal reflection in water-filled pores darkens stone)
│ ├── Roughness = 0.22 - 0.38
│ ├── Coat Weight = 1.0, Coat Roughness = 0.08, Coat IOR = 1.333
│ └── Normal = Stage 3 Bump Normal (substrate micro-relief still pokes through thin film)
└── 3. Standing planar puddle (`wet_field >= 0.72` AND `world_normal_z > 0.92`)
├── Base Color = Stage 3 dry color * 0.30
├── Roughness = 0.01 - 0.03, IOR = 1.333, Coat Weight = 0.0
└── Normal = VectorMath.NORMALIZE(Mix(VECTOR, factor=puddle_mask, A=Bump.Normal, B=(0.0, 0.0, 1.0)))
```
> **Blender 5.x `ShaderNodeMix` socket index and unit-normal rule:** `ShaderNodeMix` has duplicate socket names (`"A"`, `"B"`, `"Result"`) for `VALUE`, `VECTOR`, `RGBA`, and `ROTATION`. Indexing `mix.inputs["A"]` binds to the float `VALUE` socket (`inputs[2]`) and drops colors or vectors silently. Always index by typed slot, and pass blended normals through `ShaderNodeVectorMath` (`operation = 'NORMALIZE'`) so puddle rims stay unit length:
> - `data_type = 'VECTOR'`: `inputs[0]` (Factor), `inputs[4]` (A), `inputs[5]` (B) -> `outputs[1]` (Result).
> - `data_type = 'RGBA'`: `inputs[0]` (Factor), `inputs[6]` (A), `inputs[7]` (B) -> `outputs[2]` (Result).
Standing water levels horizontally under gravity, burying aggregate beneath a flat air-water mirror (`(0, 0, 1)`). Leaving substrate bump active inside a puddle turns reflections into frosted noise, while applying `(0, 0, 1)` on sloped walls (`world_normal_z <= 0.92`) breaks surface shading.
**Expose `OUT_PuddleMask` for Stage 7:** Name the final scalar `puddle_mask` (`0..1`) math node `OUT_PuddleMask` (`node.name = "OUT_PuddleMask"`) and the puddle normal mix node `STAGE4_PuddleNormalMix`. Stage 7 hooks concentric rain ripples into `OUT_PuddleMask` without rewriting Stage 4 nodes.
**Stage 4 gate:** Run `stage_gate_audit.py` (`TARGET_STAGE = 4`), render `stage_04_shading.png`, and check crisp planar reflections inside puddles, darkened damp rims, and matte dry stone outside.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.