()
| 5 | import SceneInit from './lib/SceneInit'; |
| 6 | |
| 7 | function App() { |
| 8 | useEffect(() => { |
| 9 | const test = new SceneInit('myThreeJsCanvas'); |
| 10 | test.initialize(); |
| 11 | test.animate(); |
| 12 | |
| 13 | const boxGeometry = new THREE.BoxGeometry(16, 16, 16); |
| 14 | const boxMaterial = new THREE.MeshNormalMaterial(); |
| 15 | const boxMesh = new THREE.Mesh(boxGeometry, boxMaterial); |
| 16 | |
| 17 | test.scene.add(boxMesh); |
| 18 | }, []); |
| 19 | |
| 20 | return ( |
| 21 | <div> |
| 22 | <canvas id="myThreeJsCanvas" /> |
| 23 | </div> |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | export default App; |
nothing calls this directly
no test coverage detected