summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-28 11:50:13 +0100
committerskal <pascal.massimino@gmail.com>2026-02-28 11:50:13 +0100
commitb9c2a0394343ff3586880d118b7d549b3e748cad (patch)
treebfc437f805c6b7344951107df8c7cd69a7ec421f /doc
parent21d8a0b86ceda19812e9869a72e49c56c90ae3da (diff)
refactor(effects): co-locate effect WGSL shaders with their .h/.cc in src/effects/
Move 13 effect-specific shaders from workspaces/main/shaders/ to src/effects/ so each effect's .h, .cc, and .wgsl are together. Update assets.txt paths in both main and test workspaces. Update EFFECT_WORKFLOW.md to reflect new location. Shared/reusable snippets remain in src/shaders/. handoff(Gemini): shaders moved; src/effects/ now has .h, .cc, and .wgsl per effect. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/EFFECT_WORKFLOW.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/EFFECT_WORKFLOW.md b/doc/EFFECT_WORKFLOW.md
index 3e574f6..b71e76d 100644
--- a/doc/EFFECT_WORKFLOW.md
+++ b/doc/EFFECT_WORKFLOW.md
@@ -21,7 +21,7 @@ Checklist for adding visual effects.
**Files**:
- Header: `src/effects/<name>_effect.h`
- Implementation: `src/effects/<name>_effect.cc`
-- Shader: `workspaces/main/shaders/<name>.wgsl`
+- Shader: `src/effects/<name>.wgsl`
**Class name**: `<Name>Effect` (e.g., `TunnelEffect`)
@@ -63,7 +63,7 @@ params.aspect_ratio; // width/height
**File**: `workspaces/main/assets.txt`
```
-SHADER_<UPPER_NAME>, NONE, shaders/<name>.wgsl, "Description"
+SHADER_<UPPER_NAME>, NONE, ../../src/effects/<name>.wgsl, "Description"
```
Asset ID: `AssetId::ASSET_SHADER_<UPPER_NAME>`