Skip to content

Commit b4285be

Browse files
committed
Rename aMaterialColor attribute to aVertexColor
1 parent c119a0a commit b4285be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webgl/p5.RendererGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ p5.RendererGL = function(elt, pInst, isMainCanvas, attr) {
151151
fill: [
152152
new p5.RenderBuffer(3, 'vertices', 'vertexBuffer', 'aPosition', this, this._vToNArray),
153153
new p5.RenderBuffer(3, 'vertexNormals', 'normalBuffer', 'aNormal', this, this._vToNArray),
154-
new p5.RenderBuffer(4, 'vertexColors', 'colorBuffer', 'aMaterialColor', this),
154+
new p5.RenderBuffer(4, 'vertexColors', 'colorBuffer', 'aVertexColor', this),
155155
new p5.RenderBuffer(3, 'vertexAmbients', 'ambientBuffer', 'aAmbientColor', this),
156156
//new BufferDef(3, 'vertexSpeculars', 'specularBuffer', 'aSpecularColor'),
157157
new p5.RenderBuffer(2, 'uvs', 'uvBuffer', 'aTexCoord', this, this._flatten)

0 commit comments

Comments
 (0)