mattdesl / mattdesl/tiny-artblocks

feature suggestion / compress inline shaders

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.