Skip to content

Commit b4411b5

Browse files
authored
Merge pull request #44 from devallibus/development
docs: improve README, fix MCP link, add shader submission PR template
2 parents 49fbd5e + 872779e commit b4411b5

4 files changed

Lines changed: 77 additions & 6 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Add shader: `<name>`
2+
3+
### Shader Details
4+
5+
- **Name (slug):**
6+
- **Display name:**
7+
- **Category:** (surface / geometry / post-processing)
8+
- **Pipeline:** (vertex / fragment / postprocessing)
9+
- **Tags:**
10+
11+
### Source Kind
12+
13+
- [ ] Original — I wrote this shader
14+
- [ ] Adapted — modified from an existing shader
15+
- [ ] Ported — translated from another platform (e.g. ShaderToy, HLSL)
16+
17+
### Provenance (adapted/ported only)
18+
19+
- **Upstream URL:**
20+
- **Repository URL** (if source points to a file):
21+
- **Revision / snapshot marker:**
22+
- **Retrieval date** (YYYY-MM-DD):
23+
- **License:**
24+
- **Author(s):**
25+
- **Required downstream notice:**
26+
27+
### Files
28+
29+
- [ ] `shaders/<name>/shader.json` — valid manifest with complete metadata
30+
- [ ] GLSL source files — all files referenced in the manifest
31+
- [ ] Preview artwork
32+
- [ ] At least one integration recipe (e.g. `recipes/r3f.tsx`)
33+
34+
### Attribution Verification
35+
36+
Every adapted or ported shader must answer **all six** from the manifest alone:
37+
38+
- [ ] Where did this code come from?
39+
- [ ] Which upstream artifact was used?
40+
- [ ] Which revision or snapshot was reviewed?
41+
- [ ] Under which license can we redistribute it?
42+
- [ ] Which names must remain credited?
43+
- [ ] What notice should downstream consumers preserve?
44+
45+
### Validation
46+
47+
- [ ] `bun run check` passes
48+
49+
### Notes
50+
51+
-

.github/pull_request_template.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
> Submitting a new shader? Use the [shader submission template](?template=shader_submission.md) instead.
2+
13
## Summary
24

3-
-
5+
-
46

57
## Provenance Checklist
68

@@ -13,4 +15,4 @@
1315

1416
## Notes
1517

16-
-
18+
-

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ ShaderBase accepts new shaders only when provenance is explicit and reproducible
1111

1212
## Submission Checklist
1313

14+
When submitting via pull request, use the [shader submission PR template](.github/PULL_REQUEST_TEMPLATE/shader_submission.md) — it guides you through all required fields.
15+
1416
For every shader entry under `shaders/<name>/`:
1517

1618
- Add `shader.json` with valid schema metadata.

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
A shader registry for Three.js — browse, search, and add production-ready GLSL shaders to your project. Like [shadcn/ui](https://ui.shadcn.com), but for shaders: the CLI copies source files into your codebase. You own the code.
44

5-
**[shaderbase.com](https://shaderbase.com)** · **[MCP server](https://mcp.shaderbase.com/mcp)**
5+
[![npm](https://img.shields.io/npm/v/@shaderbase/cli)](https://www.npmjs.com/package/@shaderbase/cli)
6+
[![CI](https://img.shields.io/github/actions/workflow/status/devallibus/shaderbase/validate.yml?branch=master)](https://github.com/devallibus/shaderbase/actions)
7+
[![License](https://img.shields.io/github/license/devallibus/shaderbase)](LICENSE)
68

7-
## Usage
9+
[Website](https://shaderbase.com) | [MCP Server](https://mcp.shaderbase.com) | [Contributing](CONTRIBUTING.md)
10+
11+
---
12+
13+
## Quick Start
814

915
### CLI
1016

@@ -38,14 +44,24 @@ Add to your Claude config:
3844

3945
Tools: `search_shaders`, `get_shader`, `submit_shader`
4046

41-
## How it works
47+
## How It Works
4248

4349
1. **Shaders live in git** — each has a `shader.json` manifest, GLSL source, and integration recipes
4450
2. **CI builds the registry** — static JSON deployed to CDN
4551
3. **Agents use MCP** — remote server with search and retrieval tools
4652
4. **Humans use the CLI**`npx @shaderbase/cli add <shader> --env r3f`
4753
5. **Files are copied into your project** — no runtime dependency, you own the code
4854

55+
## What's in the Registry
56+
57+
The registry includes shaders across several categories:
58+
59+
- **Surface** — gradients, noise patterns, color effects
60+
- **Geometry** — vertex displacement, morphing, particles
61+
- **Post-processing** — bloom, blur, distortion, color grading
62+
63+
Browse the full collection at [shaderbase.com](https://shaderbase.com).
64+
4965
## Development
5066

5167
### Prerequisites
@@ -83,7 +99,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for provenance rules and the submission c
8399
Submissions can be made via:
84100
- **CLI**: `npx @shaderbase/cli submit <glsl-or-url>`
85101
- **MCP**: `submit_shader` tool
86-
- **Pull request**: directly to `shaders/`
102+
- **Pull request**: directly to `shaders/` — use the [shader submission template](.github/PULL_REQUEST_TEMPLATE/shader_submission.md)
87103

88104
## License
89105

0 commit comments

Comments
 (0)