Improved boilerplate on new shaders
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- three.js
- Domain
- computer-graphics
Research direction
Start by tracing the editor entry point that creates new shaders and reviewing how the default vertex and fragment shaders expose Three.js varyings and time-related values. Done means newly created shaders include the requested boilerplate, while preserving existing shader behavior and covering the defaults with the project's available checks.
Written by the indexing model from the issue text.
Description
Finally learned enough GLSL and THREE-flavored GLSL to be dangerous!
Went to port over some of my shader-toys and from what I remember the process went something like this.
- Created a new shader.
- Struggled a bit to hook up some of the usual varyings like vNormal/vPosition/vUv etc....
- Couln't figure out how to add iTime.
- Bailed lol.
I think some upgraded default boilerplate is gonna go a long way for easier adoption:
- Add in all of the default available varyings through threejs vNormal, vPosition, vUv, the vertexColor one. Doesn't have to use all of them per say but just have them declared in the default vertex/frag shaders.
- Add a default iTime or iTime equivelant.
As always look up to your stuff Andrew, loved the parrallax demo of recent and can't wait to make some dank frogs.
- Dominant language
- TypeScript
- Stars
- 60
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Contributor guide
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.
More from ShaderFrog/editor
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ShaderFrog/editor#9 · 1 reaction ·
All issues in ShaderFrog/editor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·