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