Skip to content

Commit b8bdc20

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/webgl/loading.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ 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.
29+
* Note: When loading a `.obj` file that references materials stored in
30+
* `.mtl` files, p5.js will attempt to load and apply those materials.
31+
* To ensure that the `.obj` file reads the `.mtl` file correctly include the
32+
* `.mtl` file alongside it. Currently, other formats like `.lib` for materials are not supported.
3033
*
3134
* The first way to call `loadModel()` has three optional parameters after the
3235
* file path. The first optional parameter, `successCallback`, is a function

0 commit comments

Comments
 (0)