SlideShare a Scribd company logo
Demystifying Shaders
Bruno Opsenica
@BruOps
- WebGL Shaders are written in GLSL-ES
- High level shading language
- C like syntax
- Strongly typed!
- We pass them in as strings to our application
Open GL Shading Language (GLSL)
Basics - Vertices
The simplest quad
These coordinates are in
Model Space
They are defined to the
model’s own origin
system
Our vertex shader must
transform these
coordinates to clip space
Our Goal:
Projection Transform
Fragment / Pixel
Shader
- Vertex Shader acts on each vertex to transform our
points into clip space:
- model space -> view space -> clip space
- must set vec4 gl_Position;
- Fragment Shader sets the color of each pixel/fragment
- must set vec4 gl_FragColor;
- We use uniforms, attributes and varyings to calculate
these values
Summary
- Shader School - https://github.com/stackgl/shader-
school
- www.thebookofshaders.com by Patricio Gonzalez Vivo
- www.clicktorelease.com/blog/ by Jaume Sanchez
- www.shadertoy.com
- Figures taken from:
- Real Time Rendering by Adenine-Moller et al
- Wikipedia
- http://www.codinglabs.net/
- OpenGL Documentation
Resources and Further Reading
Functional Imperative
functionalimperative.com
(647) 405-8994
@func_i

More Related Content

PPTX
IDdagen 2013 - W13 - Anders organiseren
DOCX
Ultima parte 4
PPTX
GFX Part 6 - Introduction to Vertex and Fragment Shaders in OpenGL ES
PDF
Пиксельные шейдеры для Web-разработчиков. Программируем GPU / Денис Радин (Li...
PDF
A Novice's Guide to WebGL
PPTX
webgpu shader language (wgsl) and shaders - computer graphics
PDF
Pixel shaders based UI components + writing your first pixel shader
IDdagen 2013 - W13 - Anders organiseren
Ultima parte 4
GFX Part 6 - Introduction to Vertex and Fragment Shaders in OpenGL ES
Пиксельные шейдеры для Web-разработчиков. Программируем GPU / Денис Радин (Li...
A Novice's Guide to WebGL
webgpu shader language (wgsl) and shaders - computer graphics
Pixel shaders based UI components + writing your first pixel shader

Similar to Demystifying shaders (20)

PDF
Android open gl2_droidcon_2014
PDF
【Unite 2017 Tokyo】シェーダープログラミング入門!カスタムシェーダー、作るで!
PDF
GL Shading Language Document by OpenGL.pdf
PPTX
Shader Programming With Unity
PDF
XNA L11–Shaders Part 2
PPT
CS 354 Programmable Shading
PPT
Rendering: Vertices, Indices, UVs and Shaders
PDF
Shaders in Unity
PPTX
OpenGL - Bringing the 3D World into the Android
PDF
Computer Graphics - Lecture 01 - 3D Programming I
PDF
"Graphical fun With WebGL shaders", Martin Splitt
PDF
The Power of WebGL - Hackeando sua GPU com JavaScript
PPT
Hardware Shaders
PPTX
Getting started with open gl es 2
PPTX
Cg shaders with Unity3D
PPT
Praseed Pai
PPT
Programmable Piplelines
PDF
Installing Games Sucks, Learn WebGL
Android open gl2_droidcon_2014
【Unite 2017 Tokyo】シェーダープログラミング入門!カスタムシェーダー、作るで!
GL Shading Language Document by OpenGL.pdf
Shader Programming With Unity
XNA L11–Shaders Part 2
CS 354 Programmable Shading
Rendering: Vertices, Indices, UVs and Shaders
Shaders in Unity
OpenGL - Bringing the 3D World into the Android
Computer Graphics - Lecture 01 - 3D Programming I
"Graphical fun With WebGL shaders", Martin Splitt
The Power of WebGL - Hackeando sua GPU com JavaScript
Hardware Shaders
Getting started with open gl es 2
Cg shaders with Unity3D
Praseed Pai
Programmable Piplelines
Installing Games Sucks, Learn WebGL
Ad

Recently uploaded (20)

PDF
Digital Strategies for Manufacturing Companies
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Nekopoi APK 2025 free lastest update
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
System and Network Administraation Chapter 3
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
medical staffing services at VALiNTRY
PDF
System and Network Administration Chapter 2
PPT
Introduction Database Management System for Course Database
PPTX
Transform Your Business with a Software ERP System
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
history of c programming in notes for students .pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
Digital Strategies for Manufacturing Companies
Softaken Excel to vCard Converter Software.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Understanding Forklifts - TECH EHS Solution
Nekopoi APK 2025 free lastest update
Wondershare Filmora 15 Crack With Activation Key [2025
System and Network Administraation Chapter 3
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
medical staffing services at VALiNTRY
System and Network Administration Chapter 2
Introduction Database Management System for Course Database
Transform Your Business with a Software ERP System
Operating system designcfffgfgggggggvggggggggg
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Navsoft: AI-Powered Business Solutions & Custom Software Development
history of c programming in notes for students .pptx
Design an Analysis of Algorithms II-SECS-1021-03
How to Choose the Right IT Partner for Your Business in Malaysia
Ad

Demystifying shaders