Skip to content

Conversation

Vipitis
Copy link
Collaborator

@Vipitis Vipitis commented Feb 25, 2024

Part of #8

Adds functionality to directly interact with the shadertoy website via the api they offer (avoids copy and paste).
Also includes a basic CLI with entry point to test this easier. (requires force-reinstall via pip to show up)

> wgpu-shadertoy XcS3zK

Had snippets like this laying around from all the debugging anyway, it's really useful so polishing this up!
todos:

  • add tests
  • add dependencies numpy/Pillow
  • [ ] consider locally caching shaders (at least media) -> maybelater PR
  • setup an api key for github actions (?)
  • add more examples
  • update readme with CLI usage example
  • clean up
  • [ ] potentionally web scrape when shadertoy isn't officially available via the API? -> maybe there is a hash to predict this from the shaderID?

@Vipitis Vipitis changed the title [WIP] Add API functionality Add API functionality Mar 7, 2024
@Vipitis Vipitis marked this pull request as ready for review March 7, 2024 10:28
@Vipitis Vipitis merged commit 684c28a into main Mar 7, 2024
@Vipitis Vipitis deleted the wip-api branch March 7, 2024 21:30
This was referenced Mar 7, 2024
@Vipitis Vipitis mentioned this pull request Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants