Add p5.strands translations for shader examples and rename original GLSL examples#1238
Conversation
- rename original GLSL examples to preserve them alongside the new versions - add p5.strands translations for Filter Shader, Adjusting Positions With A Shader, and Shader As A Texture - remix example descriptions to reflect the new p5.strands versions Signed-off-by: MissTipo <dorine.a.tipo@gmail.com>
davepagurek
left a comment
There was a problem hiding this comment.
Nice work converting these! This all works, so I just left some comments more about code style and using the most recent p5.strands features to simplify the code.
src/content/examples/en/12_Advanced_Canvas_Rendering/03_Shader_As_A_Texture_p5strands/code.js
Outdated
Show resolved
Hide resolved
src/content/examples/en/12_Advanced_Canvas_Rendering/03_Shader_As_A_Texture_p5strands/code.js
Outdated
Show resolved
Hide resolved
src/content/examples/en/11_3D/07_Filter_Shader_p5strands/code.js
Outdated
Show resolved
Hide resolved
src/content/examples/en/11_3D/08_Adjusting_Positions_With_A_Shader_p5strands/code.js
Outdated
Show resolved
Hide resolved
src/content/examples/en/11_3D/08_Adjusting_Positions_With_A_Shader_p5strands/code.js
Outdated
Show resolved
Hide resolved
src/content/examples/en/12_Advanced_Canvas_Rendering/03_Shader_As_A_Texture_p5strands/code.js
Outdated
Show resolved
Hide resolved
src/content/examples/en/12_Advanced_Canvas_Rendering/03_Shader_As_A_Texture_p5strands/code.js
Outdated
Show resolved
Hide resolved
src/content/examples/en/12_Advanced_Canvas_Rendering/03_Shader_As_A_Texture_p5strands/code.js
Outdated
Show resolved
Hide resolved
Thanks Dave! Making the changes. Will push updates soon. |
…rect globals - Switch filter shader to buildFilterShader + filterColor.begin/set/end - Switch wiggle shader to buildColorShader + objectInputs.begin/end; drop time uniform - Switch shader-as-texture to buildMaterialShader + cameraInputs/pixelInputs begin/end - Remove unnecessary uniforms for millis/width/height/mouse and simplify numeric literals Signed-off-by: MissTipo <dorine.a.tipo@gmail.com>
|
These look wonderful thank you @MissTipo ! Some minor notes added. I was also inspecting how it looks on the website, and I propose that we add the 3 strands sketches to featured; and remove 3 of the previous sketches except "orbitControl." This would bring more visibility to the strands examples. Other ideas on how to make this more navigable is welcome @davepagurek (also @nbogie maybe you have thoughts?)
For implement featured solution: add/remove Finally, all past sketches do have translations. Minor/can be done in a separate PR but everywhere were the description text is the same, the existing translations can be duplicated for the strands sketch, I think. |
src/content/examples/en/11_3D/08_Adjusting_Positions_With_A_Shader_p5strands/description.mdx
Outdated
Show resolved
Hide resolved
src/content/examples/en/12_Advanced_Canvas_Rendering/02_Shader_As_A_Texture/description.mdx
Outdated
Show resolved
Hide resolved
…ion support
- Feature the 3 new p5.strands example pages and unfeature 3 older sketches
- Fix GLSL title formatting ("Shader as a Texture (GLSL)")
- Update collectivelyAttributedSince to 2026 for the new translations
- Extend examples content schema to accept 2026 attribution year
- Add 2026 attribution string in UI copy (en)
Signed-off-by: MissTipo <dorine.a.tipo@gmail.com>
Happy to handle the translation copying too! A quick clarification on titles, should I append (p5.strands) to the title in each new strands translated file, and correspondingly append (GLSL) to the title in each existing translated file as with the English description or should everything stay as is? |
|
Thanks @MissTipo ! Yes please update the titles to include the (GLSL) and (p5.strands). Thank you! cc @Divyansh013 for visibility - I think for GLSL and p5.strands those are technical terms and can stay in English but please let me know if there are any other ideas you have? |
davepagurek
left a comment
There was a problem hiding this comment.
The code updates look great, nice work @MissTipo!


Summary
This PR adds p5.strands translations for three existing shader examples and keeps the original GLSL versions alongside them for comparison.
Changes
Filter ShaderAdjusting Positions With A ShaderShader As A TextureNotes
The goal was to preserve the original GLSL examples while adding equivalent p5.strands versions that are easier to compare side by side.
Testing