@davidisaaclee/react-video-graph
v2.0.0
Published
React component for rendering fragment shader graphs
Downloads
25
Readme
react-video-graph
Renders a fragment shader graph as a React component.
Uses @davidisaaclee/video-graph
to encode the graph.
Usage
<VideoGraph
graph: this.state.myVideoGraph,
outputNodeKey: 'master-output',
runtimeUniforms: {
'oscillator-node': {
'currentTime': {
identifier: 'currentTime',
value: { type: 'f', data: Date.now() }
}
}
},
glRef: (glRenderingContext) => this.gl = glRenderingContext
/>
Install
yarn add @davidisaaclee/react-video-graph
Develop
# Build using tsc
yarn build
# Run Storybook on port 9001
yarn run storybook