From ee4b8b90e256a49f7c18a4f6e71c67a6396cc004 Mon Sep 17 00:00:00 2001 From: James Dunn Date: Thu, 10 Nov 2022 19:24:38 -0800 Subject: [PATCH] Change curAmbientColor to [1, 1, 1, 1] Reference: issue #5857 --- src/webgl/p5.RendererGL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgl/p5.RendererGL.js b/src/webgl/p5.RendererGL.js index d99205ffb0..c9e40eca5d 100755 --- a/src/webgl/p5.RendererGL.js +++ b/src/webgl/p5.RendererGL.js @@ -95,7 +95,7 @@ p5.RendererGL = function(elt, pInst, isMainCanvas, attr) { this.drawMode = constants.FILL; this.curFillColor = this._cachedFillStyle = [1, 1, 1, 1]; - this.curAmbientColor = this._cachedFillStyle = [0, 0, 0, 0]; + this.curAmbientColor = this._cachedFillStyle = [1, 1, 1, 1]; this.curSpecularColor = this._cachedFillStyle = [0, 0, 0, 0]; this.curEmissiveColor = this._cachedFillStyle = [0, 0, 0, 0]; this.curStrokeColor = this._cachedStrokeStyle = [0, 0, 0, 1];