6. The OpenGL ES Shading Language
Chapter Overview:
This chapter takes a break from examining WebGL sample programs and explains the core
features of the OpenGL ES Shading Language (GLSL ES) in detail. You will cover: (1) data,
variables, and variable types; (2) vector, matrix, structure, array, and sampler; (3) opera-
tors, control flow, and functions; (4) attributes, uniforms, and varyings; (5) precision
qualifier; and (6) preprocessor and directives. By the end of this chapter you will have a
good understanding of GLSL ES and how it can be used to write a variety of shaders.
There are no examples in this chapter.