1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

update test 2

This commit is contained in:
Kevin Levron 2020-09-16 23:28:21 +02:00
parent 3a3f446fdb
commit fe7823599e

View File

@ -10,6 +10,10 @@
<BoxGeometry :width="2" :height="2" :depth="10"></BoxGeometry>
</InstancedMesh>
</Scene>
<EffectComposer>
<RenderPass></RenderPass>
<UnrealBloomPass :strength="1"></UnrealBloomPass>
</EffectComposer>
</Renderer>
</template>
@ -19,6 +23,7 @@ import { Object3D, MathUtils, Vector3 } from 'three';
import {
Renderer, Camera, Scene, AmbientLight, PointLight,
StandardMaterial, InstancedMesh, BoxGeometry,
EffectComposer, RenderPass, UnrealBloomPass,
} from '../index.js';
const {
@ -30,6 +35,7 @@ export default {
components: {
Renderer, Camera, Scene, AmbientLight, PointLight,
StandardMaterial, InstancedMesh, BoxGeometry,
EffectComposer, RenderPass, UnrealBloomPass,
},
setup() {
const NUM_INSTANCES = 2500;