From 00553b3f305d0e2217659993f237ff3da604ef85 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 17 Feb 2026 18:52:17 -0800 Subject: Fold: add plane to octahedron code --- Scripts/Fold/Editor/README.md | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'Scripts/Fold/Editor/README.md') diff --git a/Scripts/Fold/Editor/README.md b/Scripts/Fold/Editor/README.md index d2b7494..7e6224a 100755 --- a/Scripts/Fold/Editor/README.md +++ b/Scripts/Fold/Editor/README.md @@ -89,47 +89,6 @@ Applies fractal Brownian motion deformation. ### Custom(opcode, f0-f3, v0-v3) For advanced use cases or custom opcodes. -## Presets (Code) - -Use built-in presets from code: - -```csharp -FoldPresets.TubeToPlaneFull(material); -FoldPresets.NormConvL2ToL1(material); -FoldPresets.NormConvL2ToLinf(material); -``` - -## Adding Custom Presets - -Edit `FoldEditorWindow.cs` to add presets to the "Load Presets" menu: - -```csharp -// In ShowPresetsMenu(): -menu.AddItem(new GUIContent("My Custom Effect"), false, () => LoadPreset_MyEffect()); - -// Add the preset loader method: -void LoadPreset_MyEffect() -{ - operations.Clear(); - AddOperation(new TubeToPlaneOp()); - var norm = new NormConversionOp(); - norm.inputK = 2f; - norm.outputK = 1f; - AddOperation(norm); -} -``` - -Or use the fluent API in code: - -```csharp -public static void MyCustomEffect(Material mat) => - FoldPipelineBuilder.Create() - .For(mat) - .TubeToPlane(Vector3.zero, Vector3.right, Vector3.forward, 1f) - .NormConversion(2f, 1f, 0.5f) - .Apply(); -``` - ## Pipeline Chaining Operations are applied in the order they're chained: -- cgit v1.2.3