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
276 17. Real-Time Volumetric Lighting for WebGL
canvas. is transfer function widget allowed us to add new color keys as desired. en,
dragging the mouse on a color key modied the alpha value for the current color key.
Once the transfer function was modied, the WebGL texture associated to the transfer
function widget was also updated. All of this is possible because of a feature in WebGL to
create a texture directly from a canvas object. is way we can show or hide dierent den-
sities in the volume as desired. is method is used to selectively render musculature in
Figure17.6(a, b) and bones in Figure17.6(c). For the engine block data s
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