Skip to content

Commit 77a1492

Browse files
authored
fixed vertexNormals
1 parent 81ff09d commit 77a1492

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/webgl/p5.Geometry.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,13 +2365,16 @@ function geometry(p5, fn){
23652365
* createCanvas(100, 100, WEBGL);
23662366
*
23672367
* // Create a p5.Geometry object.
2368-
* myGeometry = new p5.Geometry();
2369-
*
2368+
* myGeometry = buildGeometry(function(){
2369+
*
23702370
* // Create p5.Vector objects to position the vertices.
23712371
* let v0 = createVector(-40, 0, 0);
23722372
* let v1 = createVector(0, -40, 0);
23732373
* let v2 = createVector(0, 40, 0);
23742374
* let v3 = createVector(40, 0, 0);
2375+
*
2376+
* });
2377+
*
23752378
*
23762379
* // Add the vertices to the p5.Geometry object's vertices array.
23772380
* myGeometry.vertices.push(v0, v1, v2, v3);
@@ -2404,7 +2407,6 @@ function geometry(p5, fn){
24042407
* </code>
24052408
* </div>
24062409
*/
2407-
24082410
/**
24092411
* An array that lists which of the geometry's vertices form each of its
24102412
* faces.

0 commit comments

Comments
 (0)