Skip to content

Commit

Permalink
Fix Color constructor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
limzykenneth committed Dec 15, 2024
1 parent 890c5ce commit 18b3ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webgl/material.js
Original file line number Diff line number Diff line change
Expand Up @@ -3626,7 +3626,7 @@ function material(p5, fn){
this.states.drawMode = constants.TEXTURE;
this.states._useNormalMaterial = false;
this.states._tex = tex;
this.states.fillColor = new Color(255);
this.states.fillColor = new Color([1, 1, 1]);
};

RendererGL.prototype.normalMaterial = function(...args) {
Expand All @@ -3635,7 +3635,7 @@ function material(p5, fn){
this.states._useEmissiveMaterial = false;
this.states._useNormalMaterial = true;
this.states.curFillColor = [1, 1, 1, 1];
this.states.fillColor = new Color(255);
this.states.fillColor = new Color([1, 1, 1]);
this.states.strokeColor = null;
}

Expand Down

0 comments on commit 18b3ffa

Please sign in to comment.