Upload blueprints/.glsl/README.md with huggingface_hub
Browse files- blueprints/.glsl/README.md +28 -0
blueprints/.glsl/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GLSL Shader Sources
|
| 2 |
+
|
| 3 |
+
This folder contains the GLSL fragment shaders extracted from blueprint JSON files for easier editing and version control.
|
| 4 |
+
|
| 5 |
+
## File Naming Convention
|
| 6 |
+
|
| 7 |
+
`{Blueprint_Name}_{node_id}.frag`
|
| 8 |
+
|
| 9 |
+
- **Blueprint_Name**: The JSON filename with spaces/special chars replaced by underscores
|
| 10 |
+
- **node_id**: The GLSLShader node ID within the subgraph
|
| 11 |
+
|
| 12 |
+
## Usage
|
| 13 |
+
|
| 14 |
+
```bash
|
| 15 |
+
# Extract shaders from blueprint JSONs to this folder
|
| 16 |
+
python update_blueprints.py extract
|
| 17 |
+
|
| 18 |
+
# Patch edited shaders back into blueprint JSONs
|
| 19 |
+
python update_blueprints.py patch
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
## Workflow
|
| 23 |
+
|
| 24 |
+
1. Run `extract` to pull current shaders from JSONs
|
| 25 |
+
2. Edit `.frag` files
|
| 26 |
+
3. Run `patch` to update the blueprint JSONs
|
| 27 |
+
4. Test
|
| 28 |
+
5. Commit both `.frag` files and updated JSONs
|