1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-27 22:12:01 +08:00
This commit is contained in:
Kevin Levron 2021-02-27 23:26:27 +01:00
parent 3f166776ca
commit ddf60e3a0d
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<Renderer ref="renderer" :auto-clear="false" :orbit-ctrl="{ enableDamping: true, dampingFactor: 0.05 }" mouse-move="body" :mouse-raycast="true"> <Renderer ref="renderer" orbit-ctrl mouse-move mouse-raycast>
<Camera :position="{ z: 200 }" /> <Camera :position="{ z: 200 }" />
<Scene> <Scene>
<AmbientLight color="#808080" /> <AmbientLight color="#808080" />
@ -8,7 +8,7 @@
<PointLight color="#ff6000" :intensity="0.5" :position="{ x: 100}" /> <PointLight color="#ff6000" :intensity="0.5" :position="{ x: 100}" />
<PointLight color="#0000ff" :intensity="0.5" :position="{ x: -100}" /> <PointLight color="#0000ff" :intensity="0.5" :position="{ x: -100}" />
<InstancedMesh ref="imesh" material-id="material" :count="NUM_INSTANCES"> <InstancedMesh ref="imesh" :count="NUM_INSTANCES">
<BoxGeometry :width="2" :height="2" :depth="10" /> <BoxGeometry :width="2" :height="2" :depth="10" />
<!-- <CylinderGeometry :radius-top="2" :radius-bottom="2" :height="10" :rotate-x="Math.PI / 2" /> --> <!-- <CylinderGeometry :radius-top="2" :radius-bottom="2" :height="10" :rotate-x="Math.PI / 2" /> -->
<!-- <ConeGeometry :radius="2" :height="10" :rotate-x="Math.PI / 2" /> --> <!-- <ConeGeometry :radius="2" :height="10" :rotate-x="Math.PI / 2" /> -->
@ -19,7 +19,6 @@
<Text <Text
text="TroisJS" text="TroisJS"
font-src="helvetiker_regular.typeface.json" font-src="helvetiker_regular.typeface.json"
material-id="material1"
align="center" align="center"
:size="30" :size="30"
:height="5" :height="5"

View File

@ -1,7 +1,6 @@
<template> <template>
<Renderer ref="renderer" antialias mouse-move="body"> <Renderer ref="renderer" antialias mouse-move>
<OrthographicCamera ref="camera" :position="{ z: 10 }" /> <OrthographicCamera ref="camera" :position="{ z: 10 }" />
<!-- <Camera :position="{ z: 10 }" /> -->
<Scene ref="scene" /> <Scene ref="scene" />
</Renderer> </Renderer>
</template> </template>