From 18b3ffadd1812fd8089fdf152640ed23b058389d Mon Sep 17 00:00:00 2001 From: limzykenneth Date: Sun, 15 Dec 2024 21:16:46 +0000 Subject: [PATCH] Fix Color constructor usage --- src/webgl/material.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webgl/material.js b/src/webgl/material.js index 4a42d117fe..1d1adb9cc7 100644 --- a/src/webgl/material.js +++ b/src/webgl/material.js @@ -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) { @@ -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; }