Skip to content

Commit 0bf343a

Browse files
committed
fix to tint in Renderer3D
1 parent 227c6a3 commit 0bf343a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/p5.Renderer3D.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ export class Renderer3D extends Renderer {
14861486
// works differently and is global p5 state. If the p5 state has
14871487
// been cleared, we also need to clear the value in uSampler to match.
14881488
fillShader.setUniform("uSampler", this.states._tex || empty);
1489-
fillShader.setUniform("uTint", this.states.tint.array().map(v => v * 255));
1489+
fillShader.setUniform("uTint", this.states.tint._getRGBA([255, 255, 255, 255]));
14901490

14911491
fillShader.setUniform("uHasSetAmbient", this.states._hasSetAmbient);
14921492
fillShader.setUniform("uAmbientMatColor", this.states.curAmbientColor);

0 commit comments

Comments
 (0)