elements to sky
This commit is contained in:
parent
679576ad1a
commit
0d56c31f9e
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { BufferGeometry, Matrix4, Vector3 } from 'three';
|
||||
import { BufferGeometry, Color, Matrix4, Vector3 } from 'three';
|
||||
|
||||
const props = defineProps(['index', 'models'])
|
||||
|
||||
|
@ -67,7 +67,7 @@ watch([instanced_lamelle, fence_section, extra_section, lamelles_count, extra],
|
|||
instanced_lamelle.value.setMatrixAt(i, newmatrix);
|
||||
|
||||
if (i >= lamelles_count.value) {
|
||||
instanced_lamelle.value.setMatrixAt(i, new Matrix4().makeTranslation(new Vector3(0, -2, 2)));
|
||||
instanced_lamelle.value.setMatrixAt(i, new Matrix4().makeTranslation(new Vector3(0, 20, 20)));
|
||||
}
|
||||
}
|
||||
instanced_lamelle.value.instanceMatrix.needsUpdate = true
|
||||
|
|
Loading…
Reference in New Issue