mattdesl / mattdesl/tiny-artblocks
feature suggestion / compress inline shaders
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 169
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
not really an issue but I've found that I needed to add some code to compress inline shaders and it works well with the dev.js so I'm sharing it here in case it's helpful for anyone... this might be super niche thing but I always like to try to use glslx where I can.
https://gist.github.com/ofZach/7da40cbe446ef1c6d6009488aee76d53
let src = await bundle();
src = compressShaders(src);
const min = await compress(src);
this assumes inline shaders in a specific format (like let fs = `...`) so again it may be kind of specific but I found it helpful.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with dev.js and the linked gist, then inspect how bundle() produces inline shader source in the format described, such as let fs = `...`. The issue does not define an expected integration or acceptance test, so clarify the desired API and supported shader formats before determining what done means.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100