Skip to content

Commit 39aab83

Browse files
authored
Merge pull request #7256 from Garima3110/shaders
Make shaders define what they get used for.
2 parents ef1b09c + 26c88bb commit 39aab83

20 files changed

+595
-342
lines changed

package-lock.json

+2-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/webgl/3d_primitives.js

+2
Original file line numberDiff line numberDiff line change
@@ -3559,12 +3559,14 @@ function primitives3D(p5, fn){
35593559
v1 = (sy + sHeight) / img.height;
35603560
}
35613561

3562+
this._drawingImage = true;
35623563
this.beginShape();
35633564
this.vertex(dx, dy, 0, u0, v0);
35643565
this.vertex(dx + dWidth, dy, 0, u1, v0);
35653566
this.vertex(dx + dWidth, dy + dHeight, 0, u1, v1);
35663567
this.vertex(dx, dy + dHeight, 0, u0, v1);
35673568
this.endShape(constants.CLOSE);
3569+
this._drawingImage = false;
35683570

35693571
this._pInst.pop();
35703572

0 commit comments

Comments
 (0)