Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address maintainer feedback by updating fill color, adjusting sphere …
…size, and simplifying sine wave example
  • Loading branch information
Abhayaj247 committed Aug 20, 2025
commit ff8184729ec8c40414279ded36bea5be655a678e
6 changes: 3 additions & 3 deletions src/webgl/ShaderGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ if (typeof p5 !== 'undefined') {
* let t = uniformFloat(() => millis());
* getObjectInputs(inputs => {
* // Create a sine wave along the x axis in object space
* inputs.position.y += 3 * sin(t * 0.001 + inputs.position.x * 0.05);
* inputs.position.y += sin(t * 0.001 + inputs.position.x);
* return inputs;
* });
* });
Expand All @@ -2090,7 +2090,7 @@ if (typeof p5 !== 'undefined') {
* shader(myShader);
* noStroke();
* fill('orange');
* sphere(100);
* sphere(50);
* }
* </code>
* </div>
Expand Down Expand Up @@ -2138,7 +2138,7 @@ if (typeof p5 !== 'undefined') {
* background(200);
* shader(myShader);
* noStroke();
* fill('blue');
* fill('red');
* sphere(50);
* }
* </code>
Expand Down
Loading