Skip to Main Content
WebGL Insights
book

WebGL Insights

by Patrick Cozzi
August 2015
Intermediate to advanced content levelIntermediate to advanced
416 pages
16h 58m
English
A K Peters/CRC Press
Content preview from WebGL Insights
146 9. WebGL Engine Design in Babylon.js
Each group is rendered using associated engine states, such as alpha blending.
Torender an individual mesh, the following process is executed:
Mesh’s material is activated: Inner shader, samplers, and uniforms are trans-
mitted to WebGL.
Mesh’s index and vertex buers are sent to WebGL.
Draw command is executed (gl.drawElements).
Now that we have a clearer view over the engine, let’s discuss the internal architecture
and optimizations.*
9.3 Engine Centralized Access
During the rendering process, everything related to WebGL is handled by the Engine
object. It was architected this way to centra
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781498716079