Skip to content

Commit 846a082

Browse files
authored
Merge pull request #5303 from JetStarBlues/rename_aMaterialColor
Rename `aMaterialColor` attribute to `aVertexColor`
2 parents f21bbaf + b4285be commit 846a082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/p5.RendererGL.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ p5.RendererGL = function(elt, pInst, isMainCanvas, attr) {
154154
fill: [
155155
new p5.RenderBuffer(3, 'vertices', 'vertexBuffer', 'aPosition', this, this._vToNArray),
156156
new p5.RenderBuffer(3, 'vertexNormals', 'normalBuffer', 'aNormal', this, this._vToNArray),
157-
new p5.RenderBuffer(4, 'vertexColors', 'colorBuffer', 'aMaterialColor', this),
157+
new p5.RenderBuffer(4, 'vertexColors', 'colorBuffer', 'aVertexColor', this),
158158
new p5.RenderBuffer(3, 'vertexAmbients', 'ambientBuffer', 'aAmbientColor', this),
159159
//new BufferDef(3, 'vertexSpeculars', 'specularBuffer', 'aSpecularColor'),
160160
new p5.RenderBuffer(2, 'uvs', 'uvBuffer', 'aTexCoord', this, this._flatten)

0 commit comments

Comments
 (0)