Skip to content

shader-art/plugin-uniform

Repository files navigation

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