Skip to Content
GPU Pro 5
book

GPU Pro 5

by Wolfgang Engel
May 2014
Intermediate to advanced
522 pages
16h 1m
English
A K Peters/CRC Press
Content preview from GPU Pro 5
3. Bandwidth Efficient Graphics with ARM Mali GPUs 285
3.4.2 Step 2: Light Accumulation
This step makes use of both the Shader Pixel Local Storage extension and the
depth/stencil fetch extension to compute the light contribution of each light.
The lights are rendered with depth test enabled and depth writes off. (See
Listing 3.9.)
#version 300 es
#e x t e n s i o n G L EXT shader pixel local storage : enable
#e x t e n s i o n G L ARM shader framebuffer fetch depth stencil : enable
precision mediump float ;
__pixel_localEXT FragData
{
layout( r11f_g11f_b10f ) mediump vec3 Color ;
layout( rgb10_a2) mediump vec4 Normal ;
layout( r11f_g11f_b10f ) mediump vec3
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

GPU Pro 4

GPU Pro 4

Wolfgang Engel
GPU Pro 7

GPU Pro 7

Wolfgang Engel
GPU Pro 6

GPU Pro 6

Wolfgang Engel
GPU PRO 3

GPU PRO 3

Wolfgang Engel

Publisher Resources

ISBN: 9781482208641