Skip to content

Commit

Permalink
Merge pull request #7256 from Garima3110/shaders
Browse files Browse the repository at this point in the history
Make shaders define what they get used for.
  • Loading branch information
davepagurek authored Oct 17, 2024
2 parents ef1b09c + 26c88bb commit 39aab83
Show file tree
Hide file tree
Showing 20 changed files with 595 additions and 342 deletions.
30 changes: 2 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/webgl/3d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -3559,12 +3559,14 @@ function primitives3D(p5, fn){
v1 = (sy + sHeight) / img.height;
}

this._drawingImage = true;
this.beginShape();
this.vertex(dx, dy, 0, u0, v0);
this.vertex(dx + dWidth, dy, 0, u1, v0);
this.vertex(dx + dWidth, dy + dHeight, 0, u1, v1);
this.vertex(dx, dy + dHeight, 0, u0, v1);
this.endShape(constants.CLOSE);
this._drawingImage = false;

this._pInst.pop();

Expand Down
Loading

0 comments on commit 39aab83

Please sign in to comment.