simple-3d-shader
A simple 3d shader for WebGL
Example
var shell = var createMesh = var glm = var simple3DShader = var shader mesh shell shell
Here is what it should look like assuming everything worked:
Install
Use npm to install it locally:
npm install simple-3d-shader
Then you can build/run the client using any tool that compiles CommonJS modules, for example browserify or beefy.
API
var simple3DShader =
var shader = simple3DShader(gl)
Creates a simple 3d shader
gl
is a handle to the WebGL context that the shader will be created in.
Returns A gl-shader
object for the shader.
Credits
(c) 2013 Mikola Lysenko. MIT License