CS 4621: Lecture 4
Recap
- The GLSL Programming Language
- Vector data types:
vec2, vec3, vec4, and so on.
- Matrix data types:
mat2, mat3, and mat4.
- Arrays
- Swizzling
- Three ways to pass data to GLSL
- Vertex attributes
- Uniform variables
- Varying variables
This time
- The
glMatrix library
- Passing vectors and matrices to WebGL
- Applying linear and affine transformations in GLSL code
Exhibits