Additional glsl materials for the PEX library
var ShowNormals = require('pex-materials/show-normals');
var showNormalsProgram = ctx.createProgram(ShowNormals.Vert, ShowNormals.Frag);
var SolidColor = require('pex-materials/solid-color');
Uniforms:
uColor
- [r,g,b,a]
var ShowNormals = require('pex-materials/show-normals');
var ShowTexCoords = require('pex-materials/show-tex-coords');
var ShowColors = require('pex-materials/show-colors');
var Textured = require('pex-materials/textured');
Uniforms:
uTexture
- Texture2D
var Diffuse = require('pex-materials/diffuse');
Uniforms:
uDiffuseColor
- [r,g,b,a]
uLightPos
- [x, y, z], world space light position
var MatCap = require('pex-materials/mat-cap');
Uniforms:
uTexture
- Texture2D
var PointSpriteSolidColor = require('pex-materials/point-sprite-solid-color');
Uniforms:
uColor
- [r,g,b,a]
var PointSpriteTextured = require('pex-materials/point-sprite-textured');
Uniforms:
uTexture
- Texture2D
uColor
- [r,g,b,a]