aframe-atlas-uvs-component


An A-Frame component to set UVs onto a plane geometry given a gridded texture atlas.
See examples here: https://supermedium.github.io/superframe/components/atlas-uvs/
Version 3.0 supports buffer geometries for A-Frame 1.2 and greater. (Use version 2.1 of this component for A-Frame 1.1 and earlier)
$3
| Property | Description | Default Value |
| -------- | ----------- | ------------- |
| column | Column to select from atlas, 1-indexed, where
1 is the left-most column. | 1 |
| row | Row to select from atlas, 1-indexed, where
1 is the bottom-most row. | 1 |
| totalColumns | Total number of columns to divide the atlas. | 1 |
| totalRows | Total number of rows to divide the atlas. | 1 |
$3
#### Browser
Install and use by directly including the
browser files:
``
html
My A-Frame Scene
`
For A-Frame versions 1.1 and earlier:
`
`
#### npm
Install via npm:
`
bash
npm install aframe-atlas-uvs-component
`
Then require and use.
`
js
require('aframe');
require('aframe-atlas-uvs-component');
``