File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ import './p5.Geometry';
26
26
* `loadModel('assets/model.obj')`. URLs such as
27
27
* `'https://example.com/model.obj'` may be blocked due to browser security.
28
28
*
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.
30
33
*
31
34
* The first way to call `loadModel()` has three optional parameters after the
32
35
* file path. The first optional parameter, `successCallback`, is a function
You can’t perform that action at this time.
0 commit comments