0.5.0 • Published 8 years ago

glsl-uniforms-editor v0.5.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

glsl-uniforms-editor

npm.io

Usages

glsl-uniforms-editor allows to be Controlled: you have to provide values and an onChange handler to enable the edition.

<GlslUniformsEditor
  types={{ position: "vec2", power: "float" }}
  values={this.state.values}
  onChange={values => this.setState({ values })} />

glsl-uniforms-editor allows to be Uncontrolled: just define a defaultValues:

<GlslUniformsEditor
  types={{ position: "vec2", power: "float" }}
  defaultValues={{ position: [1, 2], power: 0.4 }}
  onChange={console.log.bind(console)} />

This component aims to be customizable, browse all available props.

Example

(click to open) npm.io

Used by...

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago