# kami-shader

> shader utils for WebGL / kami

Latest version **1.1.0** (published 2014-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install kami-shader
pnpm add kami-shader
yarn add kami-shader
bun add kami-shader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2014-07-01 |
| First published | 2014-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | kami, shader, glsl, webgl, gl, program, ShaderProgram, fragment, vertex, es, glsles |

## Links

- npm: https://www.npmjs.com/package/kami-shader
- Repository: https://github.com/mattdesl/kami-shader
- Issues: https://github.com/mattdesl/kami-shader/issues
- npm.io page: https://npm.io/package/kami-shader

## Dependencies (3)

- [klasse](https://npm.io/package/klasse.md) ^1.0.8
- [kami-util](https://npm.io/package/kami-util.md) ^1.1.2
- [webgl-compile-shader](https://npm.io/package/webgl-compile-shader.md) ^2.3.7

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2014-07-01
- 1.0.10 — 2014-06-16
- 1.0.9 — 2014-06-16
- 1.0.8 — 2014-06-13
- 1.0.7 — 2014-06-13
- 1.0.6 — 2014-06-13
- 1.0.5 — 2014-06-13
- 1.0.4 — 2014-06-13
- 1.0.3 — 2014-06-13
- 1.0.2 — 2014-06-13
- 1.0.1 — 2014-06-12
- 1.0.0 — 2014-06-11

## README

# kami-shader 

[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)

Shader utility for [kami](http://github.com/mattdesl/kami). Wraps [webgl-compile-shader](http://github.com/mattdesl/webgl-compile-shader) with more convenience features.

Will throw an error if the shader couldn't compile; complete with line numbers and other debugging details.

## Usage

[![NPM](https://nodei.co/npm/kami-shader.png)](https://nodei.co/npm/kami-shader/)

```js
//create a new shader
var shader = require('kami-shader')(gl, {
	vertex: vertSource,
	fragment: fragSource
});

//bind it, use it...
shader.bind();

//set some uniforms after binding
shader.setUniformf("myvec3", 0, 1, 0);
```

## License

MIT, see [LICENSE.md](http://github.com/mattdesl/kami-shader/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/kami-shader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
