Shaders
Shaders are the
most important
topic we’ll discuss today!
They
power the GPU
control how rendering is done in your application
Shaders in WebGL
we’ll use the
OpenGL ES Shading Language
(commonly called
GLSL ES
)
two shaders available in the pipeline:
vertex
shaders, which handle geometric objects
fragment
shaders, which generate colors
in vec4 aPosition; void main() { gl_Position = aPosition; }