Skip to content

Commit 96cc6f6

Browse files
committed
Documentation Update:Webgl - .lib files not supported
1 parent 4bcbbcd commit 96cc6f6

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,8 @@
143143
"hooks": {
144144
"pre-commit": "lint-staged"
145145
}
146+
},
147+
"dependencies": {
148+
"p5": "file:"
146149
}
147150
}

src/webgl/loading.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import './p5.Geometry';
2626
* `loadModel('assets/model.obj')`. URLs such as
2727
* `'https://example.com/model.obj'` may be blocked due to browser security.
2828
*
29+
* Note: Currently there is no support for `.lib` files. Only `.mtl` files are supported for defining materials.
30+
*
2931
* The first way to call `loadModel()` has three optional parameters after the
3032
* file path. The first optional parameter, `successCallback`, is a function
3133
* to call once the model loads. For example,

0 commit comments

Comments
 (0)