We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e024b4 + 1aedfad commit c1e7defCopy full SHA for c1e7def
src/webgl/loading.js
@@ -26,6 +26,11 @@ import './p5.Geometry';
26
* `loadModel('assets/model.obj')`. URLs such as
27
* `'https://example.com/model.obj'` may be blocked due to browser security.
28
*
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.
33
+ *
34
* The first way to call `loadModel()` has three optional parameters after the
35
* file path. The first optional parameter, `successCallback`, is a function
36
* to call once the model loads. For example,
0 commit comments