Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more...

8
Tiled Forward Shading Johan Medeström

Transcript of Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more...

Page 1: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

Tiled Forward ShadingJohan Medeström

Page 2: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

Project Goals

Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute shaders

Page 3: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

What I researched

OpenGL 4.3 functionality Compute Shaders OpenCL CPU based methods Ended up with Compute Shaders due to

familiarity

Page 4: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

Tiled Deferred Shading

Page 5: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

Early tests

Lots of lights are supported with good framerates

4096 small point lights

Page 6: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

Final Results

Both techniques running steady at 60 fps 2048 light sources support

Page 7: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

Performance results

Page 8: Tiled Forward Shading Johan Medeström. Project Goals Render a scene with lots of lights Learn more OpenGL and shading techniques Learn more about OpenCL/Compute.

Demo time!