@shader-art/plugin-uniform
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

UniformPlugin for shader-art

This plugin lets you add and configure uniform variables. Uses dat.GUI.

You can add uniform variables by using the <uniform type="vec2|vec3|vec4|color|int|float" /> tag.

Supported types:

<uniform type="vec2" name="testVec2" value="1,2" />
<uniform type="vec3" name="testVec3" value="1,2,3" />
<uniform type="vec4" name="testVec4" value="1,2,3,4" />
<uniform type="color" name="testColor" value="#ff00ff" />
<uniform type="float" name="testFloat" value="123." />
<uniform type="int" name="testInt" value="42" />

Examples

Readme

Keywords

Package Sidebar

Install

npm i @shader-art/plugin-uniform

Weekly Downloads

2

Version

0.2.3

License

MIT

Unpacked Size

108 kB

Total Files

6

Last publish

Collaborators

  • lea.rosema