Book Illustration
Diagrams
Page 11
3D Programming sampler2D & Axes of Rotation
These diagrams demonstrate three dimensional rotation axes
and WebGL texture sampling.
They were prepared for the books, 3D Programming for Beginners
and Simple Shaders
.
WebGL sampler2D
The WebGL sampler2D
graphic, above,
demonstrates how the following
GLSL fragment shader (in the C language), below, samples the color of a lotus flower
at locations specified by coordinates, S and T.
Built-in function texture2D()
accesses the texture from u_sampler0
at coordinates (S,T), then
returns one color from the lotus.
That one color is then assigned to the built-in
variable gl_FragColor
.
precision mediump float; uniform sampler2D u_sampler0; varying vec2 v_tex_coord0; void main(void) { gl_FragColor = texture2D( u_sampler0, v_tex_coord0 ); }
Illustrated Books
Illustrated books bring concepts to life. See diagrams, maps, 3D renderings and 2D digital images, prepared for digital books including Kindle ebooks and PDF downloadable books.
3D Graphics
3D modeling and rendering offer the ability to see objects from a variety of perspectives. Different views improve the ability to understand even complex topics.
Diagrams
Diagrams, infographics and technical illustration communicate ideas and processes with images.
Maps
Maps illustrate journeys, the ancient world with history, locations on the globe, within nations, provinces, states and cities.