@wethecurious/equi-to-ae-projector
v0.2.10
Published
Component to project equirectangular video to azimuthal equidistant
Downloads
1
Readme
equi-to-ae-projector
equi-to-ae-projector
Install
npm install --save @wethecurious/equi-to-ae-projector
Optimization
The video src texture will perform better if the dimensions are power of 2, ie 2048 x 1024, 2048 x 2048, 4096 x 2048, 4096 x 4096
Usage
import * as React from 'react'
import { EquiToAeProjector, EquiToAeProjectorProps, CC, Texture } from '@wethecurious/equi-to-ae-projector'
class Example extends React.Component {
render () {
return (
<EquiToAeProjector
src={string} // video source
trackSrc={string} // track source - optional
isLoop={bool} // loop the video - optional
isAutoPlay={bool} // auto play the video - optional
isShowSource={bool} // view the source video - optional
fov={number} // field of view - optional
roll={number} // camera roll - optional
tilt={number} // camera tilt - optional
cc={cc} // color correction object - optional
texture={texture} // texture object - optional
/>
)
}
}
License
MIT © we the curious