Progress with cra
This commit is contained in:
parent
1497eaf610
commit
824fdd6843
15 changed files with 89 additions and 224 deletions
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"installConfig": {
|
||||
"hoistingLimits": "dependencies"
|
||||
"hoistingLimits": "workspaces"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-three/drei": "^7.2.2",
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
1
examples/r3f-cra/src/react-app-env.d.ts
vendored
Normal file
1
examples/r3f-cra/src/react-app-env.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/// <reference types="react-scripts" />
|
28
examples/r3f-cra/tsconfig.json
Normal file
28
examples/r3f-cra/tsconfig.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"esModuleInterop": true,
|
||||
"jsx": "react-jsx",
|
||||
"skipDefaultLibCheck": true,
|
||||
"skipLibCheck": true,
|
||||
"checkJs": true,
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.js"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue