Renders a fragment shader graph as a React component.
Uses @davidisaaclee/video-graph
to encode the graph.
<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
/>
yarn add @davidisaaclee/react-video-graph
# Build using tsc
yarn build
# Run Storybook on port 9001
yarn run storybook