Skip to content

Commit 5863122

Browse files
committed
fix: fix example of createModel function.
1 parent 1c8d240 commit 5863122

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/webgl/loading.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,15 +1176,14 @@ p5.prototype.model = function(model) {
11761176
* f 6 5 4
11771177
* f 6 4 3
11781178
* f 6 3 2
1179-
* f 6 2 1
1180-
* f 6 1 5
1179+
* f 6 2 5
11811180
* `;
11821181
* //draw a spinning octahedron
11831182
* let octahedron;
11841183
*
11851184
* function setup() {
11861185
* createCanvas(100, 100, WEBGL);
1187-
* octahedron = createModel(octahedron_model);
1186+
* octahedron = createModel(octahedron_model, '.obj');
11881187
* describe('Vertically rotating 3D octahedron.');
11891188
* }
11901189
*

0 commit comments

Comments
 (0)