Shaders Rasmus Vahtra, Andres Traks What is a shader? Maybe this - - PowerPoint PPT Presentation

shaders
SMART_READER_LITE
LIVE PREVIEW

Shaders Rasmus Vahtra, Andres Traks What is a shader? Maybe this - - PowerPoint PPT Presentation

Shaders Rasmus Vahtra, Andres Traks What is a shader? Maybe this thing? Shader definition Computer program that is used to do shading So what exactly do they do? Calculate rendering effects on graphics hardware Allows customized


slide-1
SLIDE 1

Shaders

Rasmus Vahtra, Andres Traks

slide-2
SLIDE 2

What is a shader?

Maybe this thing?

slide-3
SLIDE 3

Shader definition

Computer program that is used to do shading

slide-4
SLIDE 4

So what exactly do they do?

  • Calculate rendering effects on graphics hardware
  • Allows customized effects

○ Hue ○ Saturation ○ Brightness ○ Contrast

Everything on the fly!

slide-5
SLIDE 5

Basics of graphics pipeline (from shaders’ POV)

CPU GPU Geometry is formed (vertex shader) Geometry shader Tessellation shader Geometry is triangulated Fragment shader Depth test Rendering frame

slide-6
SLIDE 6

Shader types

  • Vertex shaders - describe vertices (position, texture, colours)
  • Geometry shader
  • Tessellation shader
  • Fragment shaders (Pixel shaders) - describe pixels (colour, depth)
slide-7
SLIDE 7

Geometry shader

Performs tasks that vertex nor pixel shaders can’t really do

slide-8
SLIDE 8

Tessellation shader

Takes geometry and starts splitting surfaces into smaller and smaller triangles, thus making things smoother

slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11

Shaders: Low

slide-12
SLIDE 12

Shaders: Medium

slide-13
SLIDE 13

Shaders: High

slide-14
SLIDE 14

Shaders: Low

slide-15
SLIDE 15

Shaders: Medium

slide-16
SLIDE 16

Shaders: High