
Research
Active Supply Chain Attack Compromises @antv Packages on npm
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.
@shader-art/plugin-texture
Advanced tools
<shader-art> TexturePluginInstall via NPM:
npm i shader-art @shader-art/plugin-texture
Or use directly via skypack:
import { TexturePlugin } from 'https://cdn.skypack.dev/@shader-art/plugin-texture';
Texture support can be added via a TexturePlugin.
You can load the texture plugin by importing the TexturePlugin and adding it to the ShaderArt.register call like this:
ShaderArt.register([() => new TexturePlugin()]);
shader-artInside the shader art component, add an img tag like this;
<img
src="https://placekitten.com/512/512"
name="cat"
wrap-s="mirrored-repeat"
wrap-t="clamp-to-edge"
min-filter="nearest"
mag-filter="nearest"
hidden
/>
Inside your glsl shader code (which is placed inside a <script type="vert|frag"> tag), you can access the texture via
a uniform variable:
uniform sampler2D cat;
src url of the texture.name name of the uniform variablewrap-s horizontal texture wrapping (mirrored-repeat|repeat(default)|clamp-to-edge)wrap-t vertical texture wrapping (mirrored-repeat|repeat(default)|clamp-to-edge)min-filter texture minification filter (linear, nearest, nearest-mipmap-nearest, linear-mipmap-nearest, linear-mipmap-linear, nearest-mipmap-linear (default))mag-filter texture magnification filter (linear(default)|nearest)For more information about using textures inside glsl code, look at texture2D.
FAQs
Texture support for shader-art
The npm package @shader-art/plugin-texture receives a total of 15 weekly downloads. As such, @shader-art/plugin-texture popularity was classified as not popular.
We found that @shader-art/plugin-texture demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.