Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 3, 2023
1 parent 7646c1f commit a4ac931
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 0 additions & 1 deletion playground/src/pages/TheConditional.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const paneElements = reactive({
useControls('fpsgraph')
useControls(paneElements)
const material = new MeshPhongMaterial({ color: '#ff0000' })
</script>

Expand Down
22 changes: 16 additions & 6 deletions playground/src/pages/cameras/Cameras.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { TresLeches, useControls } from '@tresjs/leches'
import '@tresjs/leches/styles'
import { Box } from '@tresjs/cientos'
const gl = {
clearColor: '#82DBC5',
shadows: true,
Expand Down Expand Up @@ -41,7 +40,8 @@ watch(cameraType, ({ value }) => {
state.cameraType = value
if (value === 'perspective') {
state.camera = new PerspectiveCamera(75, 1, 0.1, 1000)
} else {
}
else {
state.camera = new OrthographicCamera(-1, 1, 1, -1, 0.1, 1000)
}
state.camera.position.set(5, 5, 5)
Expand All @@ -65,14 +65,24 @@ setTimeout(() => {

<template>
<TresLeches />
<TresCanvas v-bind="gl" ref="context" :camera="state.camera">
<TresCanvas
v-bind="gl"
ref="context"
:camera="state.camera"
>
<!-- <TresPerspectiveCamera v-if="state.cameraType === 'perspective'" :position="[11, 11, 11]" />
<TresOrthographicCamera v-if="state.cameraType === 'orthographic'" :position="[11, 11, 11]" /> -->
<Box :position="[0, 1, 0]" :scale="[2, 2, 2]">
<TresMeshNormalMaterial :color="'teal'" />
<Box
:position="[0, 1, 0]"
:scale="[2, 2, 2]"
>
<TresMeshNormalMaterial color="teal" />
</Box>
<TresGridHelper />
<TresAmbientLight :intensity="1" />
<TresDirectionalLight :position="[3, 3, 3]" :intensity="1" />
<TresDirectionalLight
:position="[3, 3, 3]"
:intensity="1"
/>
</TresCanvas>
</template>
2 changes: 1 addition & 1 deletion playground/src/pages/misc/Text3DDemo.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
import { BasicShadowMap, SRGBColorSpace, NoToneMapping } from 'three'
import Text3D from '../../components/Text3D.vue'
import { OrbitControls } from '@tresjs/cientos'
import Text3D from '../../components/Text3D.vue'
const gl = {
clearColor: '#82DBC5',
Expand Down

0 comments on commit a4ac931

Please sign in to comment.