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
Panda ant
PDF
Overview of xcelerator program and mentoring
PDF
Art Hoppers_art_projects
PDF
New Couture Jewelry Collection From Europe Launched in North America
PDF
Abridged excerpt by Joannah Vaughan Wyx. All Rights Reserved.
DOCX
Tanseer Resume
PDF
Rwanda Xcelerator slides
PDF
Blink Strategic Solutions
Panda ant
Overview of xcelerator program and mentoring
Art Hoppers_art_projects
New Couture Jewelry Collection From Europe Launched in North America
Abridged excerpt by Joannah Vaughan Wyx. All Rights Reserved.
Tanseer Resume
Rwanda Xcelerator slides
Blink Strategic Solutions

Viewers also liked (6)

PDF
Pib o producto interno bruto
PDF
Mat fin unidad1
PDF
Final Data Mining_Elizabeth Ortega
PDF
POPULAR BOOKLET- March 2015-VKI
PDF
DOCX
okoroafor catem fidelis cv5
Pib o producto interno bruto
Mat fin unidad1
Final Data Mining_Elizabeth Ortega
POPULAR BOOKLET- March 2015-VKI
okoroafor catem fidelis cv5
Ad

Similar to Demystifying shaders (20)

PDF
Clean architecture for shaders unite2019
PPTX
GFX Part 6 - Introduction to Vertex and Fragment Shaders in OpenGL ES
PDF
iOS Visual F/X Using GLSL
PDF
Android open gl2_droidcon_2014
PDF
Gdc 14 bringing unreal engine 4 to open_gl
PPTX
OpenGL Fixed Function to Shaders - Porting a fixed function application to “m...
 
PDF
PPTX
OpenGL basics
PPT
Automated Combination of Real Time Shader Programs (EG 2007)
PDF
Rendering basics
PPTX
webgpu shader language (wgsl) and shaders - computer graphics
PDF
OpenGL ES 2.x Programming Introduction
PPT
CS 354 Programmable Shading
PDF
Game Programming 12 - Shaders
PPTX
Cg shaders with Unity3D
PDF
Minko - Targeting Flash/Stage3D with C++ and GLSL
PPTX
Shader Programming With Unity
PDF
GL Shading Language Document by OpenGL.pdf
Clean architecture for shaders unite2019
GFX Part 6 - Introduction to Vertex and Fragment Shaders in OpenGL ES
iOS Visual F/X Using GLSL
Android open gl2_droidcon_2014
Gdc 14 bringing unreal engine 4 to open_gl
OpenGL Fixed Function to Shaders - Porting a fixed function application to “m...
 
OpenGL basics
Automated Combination of Real Time Shader Programs (EG 2007)
Rendering basics
webgpu shader language (wgsl) and shaders - computer graphics
OpenGL ES 2.x Programming Introduction
CS 354 Programmable Shading
Game Programming 12 - Shaders
Cg shaders with Unity3D
Minko - Targeting Flash/Stage3D with C++ and GLSL
Shader Programming With Unity
GL Shading Language Document by OpenGL.pdf
Ad

Recently uploaded (20)

PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
System and Network Administration Chapter 2
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Nekopoi APK 2025 free lastest update
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
Introduction to Artificial Intelligence
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
top salesforce developer skills in 2025.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Digital Systems & Binary Numbers (comprehensive )
wealthsignaloriginal-com-DS-text-... (1).pdf
System and Network Administration Chapter 2
Softaken Excel to vCard Converter Software.pdf
CHAPTER 2 - PM Management and IT Context
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Nekopoi APK 2025 free lastest update
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Designing Intelligence for the Shop Floor.pdf
Introduction to Artificial Intelligence
How to Choose the Right IT Partner for Your Business in Malaysia
VVF-Customer-Presentation2025-Ver1.9.pptx
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
top salesforce developer skills in 2025.pdf
Reimagine Home Health with the Power of Agentic AI​
Digital Systems & Binary Numbers (comprehensive )

Demystifying shaders