|
@@ -51,6 +51,12 @@
|
|
|
If you need more instances than the original count value, you have to create a new [name].
|
|
|
</p>
|
|
|
|
|
|
+ <h3>[property:BufferAttribute instanceColor]</h3>
|
|
|
+ <p>
|
|
|
+ Represents the colors of all instances. *null* by default.
|
|
|
+ You have to set its [page:BufferAttribute.needsUpdate needsUpdate] flag to true if you modify instanced data via [page:.setColorAt]().
|
|
|
+ </p>
|
|
|
+
|
|
|
<h3>[property:BufferAttribute instanceMatrix]</h3>
|
|
|
<p>
|
|
|
Represents the local transformation of all instances.
|
|
@@ -71,6 +77,18 @@
|
|
|
Get the local transformation matrix of the defined instance.
|
|
|
</p>
|
|
|
|
|
|
+ <h3>[method:null setColorAt]( [param:Integer index], [param:Color color] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:Integer index]: The index of an instance. Values have to be in the range [0, count].
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ [page:Color color]: The color of a single instance.
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ Sets the given color to the defined instance.
|
|
|
+ Make sure you set [page:.instanceColor][page:BufferAttribute.needsUpdate .needsUpdate] to true after updating all the colors.
|
|
|
+ </p>
|
|
|
+
|
|
|
<h3>[method:null setMatrixAt]( [param:Integer index], [param:Matrix4 matrix] )</h3>
|
|
|
<p>
|
|
|
[page:Integer index]: The index of an instance. Values have to be in the range [0, count].
|