ARnft-threejs is the new rendering engine for ARnft. It is based on Three.js !!
You can clone with git:
git clone https://github.com/webarkit/ARnft-threejs
and then get the library in the dist folder:
<script src="path/to/ARnftThreejs.js"></script>
or load with raw.githack:
<script src="https://raw.githack.com/webarkit/ARnft-threejs/main/dist/ARnftThreejs.js"></script>
or you can install from npm:
npm install @webarkit/arnft-threejs
or yarn:
yarn add @webarkit/arnft-threejs
and use it as a module:
import ARnftThreejs from '@webarkit/arnft-threejs'
The library has ES6 and typescript support. Type definitions are in the types folder.
If you want to read the API doc run in the console:
yarn docs
and then access the generated html pages with a localhost server.
If you make changes to the project to the source code , then you need to build it again:
yarn dev-ts // for a development build
yarn build-ts // for a production build
Contributions are very welcome! if you want to contribute read our CONTRIBUTING page.