Package Exports
- shox
- shox/src/Shox.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shox) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Shox
Shader tools.
Usage
CDN
import * as Shox from "https://cdn.jsdelivr.net/npm/shox@1.1.2/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.hash}
${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 shoxLICENSE
MIT license
Please refer to the MIT license for detailed licensing information.