KhronosGroup / KhronosGroup/WebGL
Add a test harness making it easy to import bug reports from ShaderToy
- Dominant language
- HTML
- Stars
- 2.9k
- Forks
- 703
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
WebGL users have submitted many useful bug reports written using ShaderToy. One recent example is:
https://twitter.com/mrdoob/status/1223384960330919937
https://www.shadertoy.com/view/3ttSzN
On @mrdoob 's machine, this looks like the following:

We should add a harness under sdk/tests/conformance/glsl/ called "shadertoy" into which these sorts of bug reports can just be copy-pasted, only requiring the JavaScript generator to be written and a tolerance to be specified. It can use GLSLGenerator.runReferenceImageTest under the hood.
Contributor guide
Research direction
Start in sdk/tests/conformance/glsl/ and review how GLSLGenerator.runReferenceImageTest is used. Build the proposed shadertoy harness so ShaderToy bug reports can be copy-pasted with a JavaScript generator and specified tolerance; done means the harness supports this workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100