🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@shader-art/plugin-uniform

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shader-art/plugin-uniform

uniform variables with dat.gui for shader-art

latest
Source
npmnpm
Version
0.2.3
Version published
Maintainers
1
Created
Source

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

  • https://codepen.io/terabaud/pen/jOymzJN?editors=1000
  • https://codepen.io/terabaud/pen/bGgOpjb?editors=1000

Keywords

webgl

FAQs

Package last updated on 10 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts