Skip to content

Commit

Permalink
fix: update TresCanvasProps to newest (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jul 29, 2023
1 parent 0eca08f commit 1bec0d7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/runtime/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ref } from 'vue'
import { TresCanvas as TC } from '@tresjs/core'
import type { TresCamera } from '@tresjs/core'
import { ACESFilmicToneMapping, PCFSoftShadowMap, SRGBColorSpace } from 'three'
import type { ColorSpace, ShadowMapType, ToneMapping } from 'three'
import type { ColorSpace, ShadowMapType, ToneMapping, WebGLRendererParameters } from 'three'
defineProps<TresCanvasProps>()
Expand All @@ -21,18 +21,17 @@ const rendererPresets = {
type RendererPresetsType = keyof typeof rendererPresets
interface TresCanvasProps {
interface TresCanvasProps extends Omit<WebGLRendererParameters, 'canvas'> {
// required by for useRenderer
shadows?: boolean
clearColor?: string
toneMapping?: ToneMapping
shadowMapType?: ShadowMapType
physicallyCorrectLights?: boolean
useLegacyLights?: boolean
outputColorSpace?: ColorSpace
toneMapping?: ToneMapping
toneMappingExposure?: number
context?: WebGLRenderingContext
powerPreference?: 'high-performance' | 'low-power' | 'default'
preserveDrawingBuffer?: boolean
clearColor?: string
// required by useTresContextProvider
windowSize?: boolean
preset?: RendererPresetsType
disableRender?: boolean
Expand Down

0 comments on commit 1bec0d7

Please sign in to comment.