ShaderHood

NizamNet in Rendering


SHADERHOOD DOCS

// USER MANUAL v1.0
CONTENTS
01 // INSTALLATION
02 // QUICK START: SHADER EDITOR
03 // QUICK START: COMPOSITOR
04 // SHADER LIBRARY & MY LIBRARY
05 // WRITING SHADERS
06 // ANNOTATIONS (SOCKET UI)
07 // OUTPUTS & PBR WIRING
08 // PARALLAX (DEPTH)
09 // 3D VOLUMES
10 // SCENE LINK (OBJECTS, LIGHTS, SURFACES)
11 // PERFORMANCE: CACHE & BAKE
12 // PYTHON API & SCRIPTING
13 // TROUBLESHOOTING
14 // F.A.Q.

01 // INSTALLATION

  1. Download the zip for your system (do not unzip): shaderhood-windows-x64.zip, shaderhood-macos.zip or shaderhood-linux-x64.zip (Core: shaderhood_core-…).
  2. Blender → Edit > Preferences > Add-ons → Install from Disk… and pick the zip.
  3. Enable ShaderHood. The preferences show the GPU backend status and your My Library folder.
  4. Builds for Windows x64, macOS (Apple Silicon + Intel, one zip) and Linux x64 (glibc 2.28+). Tested with Blender 5.3 on Windows (Vulkan and OpenGL).
UPDATING

Remove the old version and install the new zip (or install over it) — no Blender restart needed, the new version is live immediately. Your own shaders in My Library are stored outside the add-on and are never touched by updates.

02 // QUICK START: SHADER EDITOR

  1. Shader Editor → Shift+A → ShaderHood Library → pick a category → pick a shader. A ready node appears.
  2. Connect Color → Principled BSDF Base Color (and Alpha, Normal via a Normal Map node, Roughness…).
  3. Tweak the sockets: they are normal Blender sockets — keyframe them, drive them, link Value/RGB/Math nodes.
  4. Edit the code in the Text Editor: the node re-parses live while you type; errors keep your links.
The node renders the shader into a texture (128–4096 px presets or Custom width × height, set on the node) sampled at UV / Generated / Object / Window / Camera coordinates. Think procedural texture: you output colors, normals, masks; Principled BSDF does the lighting.

03 // QUICK START: COMPOSITOR

  1. Compositor → Shift+A → ShaderHood Library → e.g. Stylize > Toon Cel Shading.
  2. Plug Render Layers (or an Image) into the node's Image input; plug the output into the Group Output / Viewer.
  3. Resolution follows the scene (Scene Render Size), or pick Match Input / fixed sizes on the node.
  4. Chain filters freely. The camera icon (Capture 3D Scene) feeds a quick render in for instant preview.

04 // SHADER LIBRARY & MY LIBRARY

Library button Book icon left of the Text field on every node: searchable menu (just start typing). 115+ built-in shaders in WGSL and GLSL.
Shift+A → ShaderHood Library Same menus, adds a new node already loaded with the shader.
Save to My Library Disk icon right of the Text field: name, category (= menu), description, tags. A thumbnail is saved automatically.
Sidebar → ShaderHood Thumbnail browser + My Library manager: new / rename / delete / reorder categories, rename / move / reorder shaders, Edit File, Update from node, Import files.
Paste Shadertoy Code Converts mainImage-style GLSL from the clipboard (iTime, iResolution, iMouse, iChannel0–3).
WHERE IS MY LIBRARY?

Documents/Blender/ShaderHood Library (next to Blender's own Assets folder). Change it in the add-on preferences. Sub-folders shader/ and compositor/ hold one folder per category; each .wgsl/.glsl file is one menu entry. Organise it with your file browser, git or Dropbox — Blender picks changes up automatically. Deleted entries go to _trash/, never lost.

LICENSE NOTE

Shadertoy shaders are CC BY-NC-SA by default unless the author says otherwise. Only use code you have the rights to, especially for commercial work. The built-in library is original ShaderHood code.

05 // WRITING SHADERS

  • One @fragment entry (WGSL) or void main() (GLSL 450). Input: @location(0) uv (0..1).
  • Every member of a var struct (GLSL: uniform block) becomes an input socket.
  • Every @location(N) output becomes an output socket (up to 8). vec4 at location 0 also gets Alpha.
  • Textures: texture_2d + sampler → Image picker (shader) / input socket (compositor).
  • Use textureSampleLevel(…, 0.0) inside loops; WGSL never converts types implicitly (f32(i)).
struct Params {
time: f32, // @time (filled by Blender)
/// Ripple frequency. @min(0.5) @max(50) @default(10)
frequency: f32,
/// @color @default(0.05, 0.35, 0.9)
base_color: vec3<f32>,
};
@group(0) @binding(0) var<uniform> params: Params;
 
struct Out {
@location(0) base_color: vec4<f32>, // -> Base Color + Alpha sockets
@location(1) roughness: f32, // -> Roughness socket
};
 
@fragment
fn main(@location(0) uv: vec2<f32>) -> Out {
let w = 0.5 + 0.5 * sin(length(uv - 0.5) * params.frequency * 6.283 - params.time);
var o: Out;
o.base_color = vec4<f32>(params.base_color * w, 1.0);
o.roughness = 1.0 - w;
return o;
}
struct Params {
resolution: vec2<f32>, // @resolution (e.g. 1920x1080)
/// @min(0) @max(1) @default(0.5) @subtype(FACTOR)
amount: f32,
};
@group(0) @binding(0) var<uniform> params: Params;
@group(0) @binding(1) var src_tex: texture_2d<f32>; // -> "Image" input socket
@group(0) @binding(2) var src_samp: sampler;
 
@fragment
fn main(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
let c = textureSample(src_tex, src_samp, uv);
let gray = vec3<f32>(dot(c.rgb, vec3<f32>(0.2126, 0.7152, 0.0722)));
return vec4<f32>(mix(c.rgb, gray, params.amount), c.a);
}
#version 450
layout(set = 0, binding = 0) uniform Params {
float time; // @time
/// @color @default(1.0, 0.4, 0.1)
vec3 tint;
};
layout(location = 0) in vec2 uv;
layout(location = 0) out vec4 color; // -> "Color" (+ Alpha)
 
void main() {
color = vec4(tint * (0.5 + 0.5 * sin(uv.x * 20.0 + time)), 1.0);
}

06 // ANNOTATIONS (SOCKET UI)

ANNOTATION EFFECT
@min(x) @max(x) Socket range
@default(a, b, c) Initial value (color alpha defaults to 1)
@label("Text") Socket name
@color / @vector Force Color or Vector socket
@subtype(FACTOR) Slider subtype (FACTOR, PERCENTAGE, ANGLE, DISTANCE, TIME…)
@hidden No socket; the shader gets the default
@time @frame @resolution Filled by Blender every frame (no socket)
@alpha Extra vec4 output also exposes an Alpha socket
TIP

Text in a /// comment above a member becomes the socket tooltip.

07 // OUTPUTS & PBR WIRING

OUTPUT MEMBER WIRE TO
base_color: vec4 Principled Base Color (+ Alpha)
emission: vec3 Emission Color (HDR ok)
normal: vec3 Normal Map node → Normal (tangent space, 0..1 encoded)
roughness / metallic: f32 Roughness / Metallic
height / mask: f32 Bump Height, Mix factors

08 // PARALLAX (DEPTH)

  1. Load a material with a Height output (Brick Wall, Flagstones, Hex Tiles, Wood Planks…) and wire it to Principled BSDF as usual.
  2. On the node click Parallax and pick a quality: Fast (offset, 2 samples), Balanced (occlusion, 12 layers + refinement), High (24 layers, cubic), Ultra (relief, 32 layers).
  3. Open the node's Parallax panel and set Depth (0.03 = 3% of a tile). Done: no modifier, no subdivision, no displacement.
SOCKET WHAT IT DOES
Depth / Depth V Overall depth, and an extra multiplier along V for stretched UVs.
Surface Level Height that stays in place: 1 = everything sinks in; 0.5 = high parts pop out.
Invert Height When bright means deep in your height map.
Move X / Move Y Slide the texture (keyframe for flowing lava, conveyor belts…).
Tiling X / Tiling Y Repeat the texture; depth stays relative to one tile.
Grazing Fade Less depth at grazing angles: hides stepping and smearing.
Offset Limit Maximum shift as a multiple of Depth: stops tearing when looking along the surface.
Dither Randomises the layers per pixel: slices become fine noise that render samples smooth out.
Cavity Shading Darkens recesses of the color outputs (cheap ambient occlusion).
Parallax UV (output) Plug into your own Image Texture nodes so they follow the same depth.
Parallax Depth (output) 0 = top, 1 = deepest hit: use as AO or a mask.
Silhouette (toggle) Alpha 0 where the view ray leaves the face: raised parts form a real outline at grazing angles. Wire Alpha (or Parallax Mask) to BSDF Alpha; UV › Reset per face.
Silhouette Softness / Margin Soft fade width and inset of the cut edge.
Curved + Curvature U / V Bend the ray with spheres / cylinders (start ~100 / 50; V = 0 for cylinders).
Parallax Mask (output) 1 = surface seen, 0 = cut away. For shaders without an Alpha output.
ADVANCED (SIDEBAR)
Quality: Custom Choose the method (Offset / Steep / Occlusion / Relief), layers (2–64) and refinement.
Height Which output is the height map (auto: height / displacement / depth / bump / mask, else the color's brightness).
Edges Repeat (tileable), Extend, or Clip: alpha 0 where the shifted UV leaves the tile (decals).
Flip U / Flip V Reverse the direction for mirrored or rotated UV islands.
Tangent Source Auto (UV map for UV coords, Object Axes for Generated / Object), UV Map, Object Axes (planar top-down, no UVs needed), Radial X / Y / Z (cylinders, columns).
Layer Bias More layers near the top (raised details) or bottom (deep holes).
Height Filter Auto (Cubic on High/Ultra), Linear, Cubic or Closest for the height samples.
Smooth Height Averages 4 height taps: softer cliffs, no stair steps (4x the samples).
GOOD TO KNOW

Parallax is an illusion on a flat surface: the silhouette stays flat and it needs UV coordinates. For real geometry wire Height into Blender's Displacement. Writing your own shader? Output height: f32 (1 = top, 0 = deepest) and parallax finds it automatically.

09 // 3D VOLUMES

  1. Add a cube (or any closed mesh). In its material, connect a Principled Volume to Material Output › Volume.
  2. Shift+A › ShaderHood Library › Volumes (e.g. Volumetric Lightning). The node switches to 3D Volume by itself.
  3. Connect Density, Color and Emission to Principled Volume. Render in EEVEE or Cycles.
SETTING WHAT IT DOES
Slices / Slice Size Z and XY resolution of the volume (e.g. 64 × 128 × 128).
Space Generated: the object's bounding box is the cube. Object: object space -1..1, repeating.
Filter / Blend Smooth (bilinear + slice blending) or Voxels / Nearest for a stepped look.

Writing your own: add slice: f32, // @slice to the uniform struct and treat vec3(uv, params.slice) as a 3D point in the unit cube (z up). Output density, color, emission. Fade density to 0 before the cube faces.

struct Params {
time: f32, // @time
slice: f32, // @slice (depth 0..1 of the slice)
/// @default(0.35) @min(0.05) @max(0.5)
radius: f32,
};
@group(0) @binding(0) var<uniform> params: Params;
 
struct Out {
@location(0) color: vec4<f32>, // Principled Volume > Color
@location(1) density: f32, // > Density
@location(2) emission: vec3<f32>, // > Emission Color
};
 
@fragment
fn main(@location(0) uv: vec2<f32>) -> Out {
let p = vec3<f32>(uv, params.slice) - vec3<f32>(0.5);
let d = 1.0 - smoothstep(params.radius - 0.08, params.radius, length(p));
var o: Out;
o.color = vec4<f32>(0.9, 0.95, 1.0, 1.0);
o.density = d * 6.0;
o.emission = vec3<f32>(1.0, 0.35, 0.1) * pow(d, 3.0) * 4.0;
return o;
}
EEVEE TIP

Volume detail in EEVEE comes from Render Properties › Volumes › Resolution (tile size 2–4 for close-ups). Cycles uses the full slice resolution.

10 // SCENE LINK (OBJECTS, LIGHTS, SURFACES)

Annotate a member and the node fills it from the scene every frame; nothing to wire. Objects named in the code can be swapped on the node: the Scene Link box shows one object field per input (empty = the name from the code), the Surface object, warnings and a Drive Light button per export.

ANNOTATION WHAT YOU GET
@object("Name"[, space]) Position (vec3 / vec4) or matrix (mat4) of an object. Spaces: world, local, generated, volume, camera, screen. Arrays: one object per element.
@camera("field") position, direction, view / projection matrices, lens, clip, fov.
@lights("field") Every light: position (+type), color (+power), direction, spot, screen. With @light_count.
@rna("data path") Any Blender property, e.g. objects['Lamp'].data.energy, scene.frame_end, self.modifiers['Wave'].time (evaluated: keyframes, drivers, modifiers).
@geometry("map") On a texture. Shader node: the object's surface in UV space (position, normal, edges, curvature, geodesic, uv, id…). Compositor: camera G-buffer (+ depth).
@sdf("Name") On a texture_3d, 3D Volume mode: signed distance field of an object.
@lighting("map") On a texture: the light arriving at each surface point / pixel, shadows included (diffuse, direct, ambient, shadow, specular). Node switch: Fast (live shadow maps) or Exact (Bake Frame / Bake Range: Cycles bake or override render).
@export("name") On an output: published as scene["sh_name"] before the frame is evaluated, for drivers (Drive Light).
  1. Build the effect from the library: Volumes › Strike Bolt (Objects) on a cube that holds the cloud and the character, Scene Link › Body Electrocution in the character's material, Scene Link › Electrified Water in the water, Volumes › Electric Aura around the body.
  2. Pick the objects on each node (Cloud, Strike Point, Geodesic From, SDF Object). Keep the same Rate and Seed on all of them.
  3. Press Drive Light on the bolt's export to flash a real light with every strike.
  4. Give a Scene-Linked material to one object (Make Single User on the node if several share it).

Coordinates: the shader declares them with //! coords: uv (or object / generated / window / camera, //! uv_map: Name); the node menu says From Shader and any other choice overrides the code for testing. #include "sh/lightning", "sh/noise", "sh/scene" add ready helpers; your own includes can be Text blocks or files in My Library/_include.

#include "sh/lightning"
struct Params {
time: f32, // @time
from_pos: vec3<f32>, // @object("Cloud")
to_pos: vec3<f32>, // @object("StrikePoint")
};
/// The object's surface, texel by texel. @geometry("position")
@group(0) @binding(1) var pos_map: texture_2d<f32>;
struct Out {
@location(0) emission: vec4<f32>,
/// Drives a real light. @export("flash")
@location(1) flash: f32,
};
LIMITS

Everything is evaluated into textures (resolution on the node). A surface shader knows the lights, not the finished lighting (shadows / bounces are not exposed to add-ons); its outputs are lit and reflected by EEVEE / Cycles as usual. Bakes take maps from the current scene state.

11 // PERFORMANCE: CACHE & BAKE

  • Live: the GPU renders only when code, a socket, the frame or a setting changes (~1–3 ms at 2K in EEVEE).
  • Auto Cache (chip icon): played frames are kept in memory; loops replay in <1 ms.
  • Bake: pre-render the frame range to a Flipbook atlas (fastest), EXR or PNG sequence → Baked mode plays at 0 ms, also on render farms without a GPU.
  • Cycles: VRAM while you work in Material Preview, automatic CPU sync for Rendered viewport and F12.

12 // PYTHON API & SCRIPTING

Every node can be driven from Python (and by coding agents): stable error codes with line/column/hints, node.agent_report() JSON, and AI_GUIDE.md in the add-on folder: give it to any AI chat and it writes ShaderHood shaders (every example in it is compiled by the test suite).

import bpy
node = mat.node_tree.nodes.new("ShaderHoodShaderNode")
 
from shaderhood import library
library.load_into_node(node, "builtin:shader/Space/gargantua_singularity.wgsl")
print(node.agent_report()) # JSON: status, diagnostics, sockets
node.inputs["Speed"].default_value = 2.0
node.render_gpu()
library.save_from_node(node, name="My Black Hole", category="Favourites")

13 // TROUBLESHOOTING

Scene Link shows “no object named …” Create that object or pick another one in the node's Scene Link box.
Surface maps are black The object needs a UV map, and the material must be on that object (Surface field).
Shared material warning Press Make Single User on the node so each object gets its own copy.
Node shows an error Read the message (line + hint). Copy icon copies full diagnostics. Your sockets and links are kept.
“Backend not loaded” Check Preferences → ShaderHood. Also check that you installed the zip for your system (Windows, macOS or Linux).
Shadertoy code fails Use Paste Shadertoy Code / the Convert button. Multi-pass buffers (Buffer A–D) aren't supported.
Looks washed out Outputs are linear. Converted Shadertoy code has a Display to Linear socket.
Parallax looks inverted Toggle Invert Height, or Flip U / Flip V for mirrored UV islands.
Parallax smears at edges Raise Grazing Fade, lower Depth, or use High / Ultra quality.
Volume looks like a box Fade density to 0 near the cube faces; use Generated space on a closed mesh.
Volume is blurry in EEVEE Lower Render Properties › Volumes › Resolution (tile size) or raise Slices.
Parallax without UVs Use Generated / Object coordinates: Tangent Source Auto switches to Object Axes.
Layer slices on cliffs Keep Dither at 1, use High / Ultra, or enable Smooth Height.
Straight cut line at the edge Turn on Silhouette, wire Alpha, UV › Reset per face, press Fix for backface culling.
Tearing at grazing angles Lower Offset Limit (e.g. 2–3) or raise Grazing Fade.
Blurry texture Raise the node resolution (presets up to 4096, or Custom up to 16384 per side) or use Closest filtering for pixel art.

14 // F.A.Q.

Q: Does it work in Cycles?
A: Yes. The result is a texture, so EEVEE, Cycles, Material Preview and F12 all see it.
Q: Do I need to know shader coding?
A: No: 115+ ready shaders with sliders. When you want more, edit the code or ask any AI chat for it (give it the AI_GUIDE.md that ships in the add-on).
Q: Will updates delete my shaders?
A: No. My Library is a normal folder outside the add-on.
Q: Can I make volumetric effects?
A: Yes: 3D Volume mode turns a shader into a real 3D texture for Principled Volume (lightning, clouds, fire, nebulae).
Q: Can I write parallax in my own WGSL/GLSL?
A: You don't need to: output a height value and switch on Parallax on the node. The node does the ray-march in the material, where the camera direction is known.
Q: Can a shader react to objects and lights?
A: Yes: Scene Link gives the code object positions, the camera, every light, any property and the object's own surface (positions, normals, edges, distance along the body), and sends values back to drivers with @export.
Q: Does it support NPR / toon with real shadows?
A: Yes: @lighting gives the shader the real light at every point, cast shadows included. Fast mode is live; Exact mode bakes what Cycles (or your engine) computes, bounces included.
Q: Can I share my shaders?
A: Yes: send the .wgsl/.glsl file (or the whole category folder). Others drop it into their My Library.
  • Everything in Core plus the full shader library: 115 ready WGSL/GLSL shaders and filters (materials, sci-fi, space, raymarching, volumes, Scene Link lightning and NPR, compositor looks and FX), with thumbnails, one click from Shift+A.

    $40
  • The complete ShaderHood add-on: WGSL/GLSL code nodes for EEVEE, Cycles and the Compositor, Scene Link, @lighting for NPR, parallax, 3D volumes, #include helpers, My Library and Shadertoy import, with starter templates. Without the 113-shader library.

    $30
$40

Support Period Included

Includes 12 months of

Extend this product’s Support Period +12 months: 25% of product price

Have questions before purchasing?
Login to message

Details
Dev Fund Contributor
Published about 10 hours ago
Blender Version 5.3
Extension Type N/A
Render Engine Used Cycles, Eevee
License GPL