nirholas/three-ws/shadows-that-look-right
Get crisp, stable, correctly placed shadows in three.js: enable the shadow map, fit the directional light's shadow camera to the scene bounds, pick a map size, tune bias and normalBias against shadow acne and peter-panning, soften with shadow.radius, catch shadows on an invisible ground with ShadowMaterial, and freeze the shadow map for static scenes. Use when shadows are missing, blocky, pixelated, striped (acne), detached from the object (peter-panning), cut off at an edge, flickering, too dar
Agent skill · version 0.0.0-main.1795234016.ga4d82eb · from nirholas/three.ws
Install
npx yarkr-cli add skill:nirholas/three-ws/shadows-that-look-rightWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:nirholas/three-ws/shadows-that-look-right
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:nirholas/three-ws/shadows-that-look-rightOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:nirholas/three-ws/shadows-that-look-rightWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.