shox
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Shox

NPM Package

Shader tools.

Usage

CDN

import * as Shox from "https://cdn.jsdelivr.net/npm/shox@1.2.0/src/Shox.js"

const frag = `#version 300 es
  precision mediump float;

  uniform vec2 iResolution;
  // ...

  ${Shox.noiseMath} // before any noise function
  ${Shox.snoise3D}
  ${Shox.snoise3DImage}
  ${Shox.displace}
  ${Shox.extend}
  ${Shox.flip}
  ${Shox.pixelate}
  ${Shox.rotate}
  ${Shox.hash} // before voronoi
  ${Shox.voronoi}
  ${Shox.gradient}
  ${Shox.zcPalette(5)}
  ${Shox.iqPalette}
  ${Shox.unsharp}
  ${Shox.blur(30)}
  ${Shox.mapFunc}
  ${Shox.smooth}
  ${Shox.dither}

  void main() {
    // ...
  }
`

NPM

npm i shox

LICENSE

MIT license

Please refer to the MIT license for detailed licensing information.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i shox

      Weekly Downloads

      5

      Version

      1.2.0

      License

      MIT

      Unpacked Size

      213 kB

      Total Files

      74

      Last publish

      Collaborators

      • zrnof