@volter/blender-engine 0.1.83 → 0.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,6 +120,11 @@ export class BlenderOrderedBatches {
|
|
|
120
120
|
draw = new THREE.BatchedMesh(1, 0, 0, family.material);
|
|
121
121
|
draw.dispose();
|
|
122
122
|
draw.copy(template);
|
|
123
|
+
// Three r180's program invalidation reads colorTexture, whereas its
|
|
124
|
+
// program parameters read _colorsTexture. These owned draws never use
|
|
125
|
+
// per-instance colors: expose that same null state to both checks so
|
|
126
|
+
// every draw does not rebuild the already-correct program parameters.
|
|
127
|
+
Object.defineProperty(draw, 'colorTexture', {value: null});
|
|
123
128
|
for (const name of Object.keys(template.geometry.attributes))
|
|
124
129
|
draw.geometry.setAttribute(name, template.geometry.getAttribute(name));
|
|
125
130
|
draw.geometry.setIndex(template.geometry.index);
|