1.1.0 • Published 10 years ago

kami-shader v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

kami-shader

stable

Shader utility for kami. Wraps 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

//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 for details.

1.1.0

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago