We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd28154 commit a125a1aCopy full SHA for a125a1a
src/resources/container.js
@@ -88,6 +88,15 @@ class ContainerResource {
88
* castShadows: true
89
* });
90
* app.root.addChild(entity);
91
+ *
92
+ * // find all render components containing mesh instances, and change blend mode on their materials
93
+ * var renders = entity.findComponents("render");
94
+ * renders.forEach(function (render) {
95
+ * render.meshInstances.forEach(function (meshInstance) {
96
+ * meshInstance.material.blendType = pc.BLEND_MULTIPLICATIVE;
97
+ * meshInstance.material.update();
98
+ * });
99
100
101
*/
102
instantiateRenderEntity(options) {
0 commit comments