��� Chapter VI�OpenGL ES and Shader
All class materials including this PowerPoint file are available at
https://github.com/medialab-ku/openGLESbook
Introduction to Computer Graphics with OpenGL ES (J. Han)
GPU Rendering Pipeline (revisited)
6-2
Introduction to Computer Graphics with OpenGL ES (J. Han)
Transforms (summarized)
6-3
object 1
(object space 1)
object 2
(object space 2)
object 3
(object space 3)
…
object n
(object space n)
world transform 1
world transform 2
world transform 3
world transform n
scene
(world space)
scene'
(camera space)
scene''
(clip space)
projection
transform
view
transform
Introduction to Computer Graphics with OpenGL ES (J. Han)
Vertex and Index Arrays (revisited)
6-4
Introduction to Computer Graphics with OpenGL ES (J. Han)
OpenGL ES and Shading Languages
6-5
Introduction to Computer Graphics with OpenGL ES (J. Han)
Vertex Shader
6-6
Introduction to Computer Graphics with OpenGL ES (J. Han)
6-7
Vertex Shader (cont’d)
Introduction to Computer Graphics with OpenGL ES (J. Han)
GL Program
6-8
Introduction to Computer Graphics with OpenGL ES (J. Han)
GL Program - Shader Object
6-9
Introduction to Computer Graphics with OpenGL ES (J. Han)
GL Program - Program Object
6-10
vertex shader object
fragment shader object
program object
Introduction to Computer Graphics with OpenGL ES (J. Han)
Attributes
6-11
Introduction to Computer Graphics with OpenGL ES (J. Han)
Attributes (cont’d)
6-12
Introduction to Computer Graphics with OpenGL ES (J. Han)
Attributes (cont’d)
6-13
Introduction to Computer Graphics with OpenGL ES (J. Han)
Attributes (cont’d)
6-14
Introduction to Computer Graphics with OpenGL ES (J. Han)
Attributes (cont’d)
6-15
stride = 32B
Introduction to Computer Graphics with OpenGL ES (J. Han)
Uniforms
6-16
Introduction to Computer Graphics with OpenGL ES (J. Han)
Uniforms
6-17
Introduction to Computer Graphics with OpenGL ES (J. Han)
Drawcalls
6-18
48 triangles
Introduction to Computer Graphics with OpenGL ES (J. Han)
Drawcalls (cont’d)
6-19
Introduction to Computer Graphics with OpenGL ES (J. Han)
OpenGL vs. Vulkan
6-20
Introduction to Computer Graphics with OpenGL ES (J. Han)
Metal
6-21
Introduction to Computer Graphics with OpenGL ES (J. Han)