Progress with cra

This commit is contained in:
Aria Minaei 2021-08-07 22:30:29 +02:00
parent 1497eaf610
commit 824fdd6843
15 changed files with 89 additions and 224 deletions

View file

@ -1,8 +1,10 @@
import {getProject} from '@theatre/core'
import * as THREE from 'three'
import {useState, useEffect, useRef} from 'react'
import {useFrame} from '@react-three/fiber'
import {softShadows} from '@react-three/drei'
import {useFrame, Canvas} from '@react-three/fiber'
import {Shadow, softShadows} from '@react-three/drei'
import React from 'react'
import {editable as e, Wrapper} from '@theatre/plugin-r3f'
// Soft shadows are expensive, comment and refresh when it's too slow
softShadows()

View file

@ -3,6 +3,8 @@ import './index.css'
import reportWebVitals from './reportWebVitals'
import '@theatre/studio'
import {getProject} from '@theatre/core'
import React from 'react'
import App from './App'
ReactDOM.render(
<React.StrictMode>

View file

@ -0,0 +1 @@
/// <reference types="react-scripts" />