DuncanWalter / tile-flipper

The software side of a puzzle game
MIT License
1 stars 1 forks source link

Add three js canvas #14

Open DuncanWalter opened 5 years ago

DuncanWalter commented 5 years ago

branch with three installed: https://github.com/DuncanWalter/tile-flipper/tree/three-canvas

run yarn to install the dep locally and you're ready to:

import { Scene } from 'three'

// go hog wild

Mounting three onto a component that react manages will require using a ref, which is fairly well covered here: https://blog.bitsrc.io/starting-with-react-16-and-three-js-in-5-minutes-3079b8829817

DuncanWalter commented 5 years ago

Probably worth opting into: https://threejs.org/docs/#manual/en/introduction/How-to-use-WebGL2