shaders
play

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


  1. Shaders Rasmus Vahtra, Andres Traks

  2. What is a shader? Maybe this thing?

  3. Shader definition Computer program that is used to do shading

  4. So what exactly do they do? ● Calculate rendering effects on graphics hardware ● Allows customized effects ○ Hue ○ Saturation ○ Brightness ○ Contrast Everything on the fly!

  5. Basics of graphics pipeline (from shaders’ POV) Geometry is formed Geometry CPU GPU ( vertex shader ) shader Geometry is Tessellation Fragment triangulated shader shader Depth Rendering test frame

  6. Shader types ● Vertex shaders - describe vertices (position, texture, colours) ● Geometry shader ● Tessellation shader ● Fragment shaders (Pixel shaders) - describe pixels (colour, depth)

  7. Geometry shader Performs tasks that vertex nor pixel shaders can’t really do

  8. Tessellation shader Takes geometry and starts splitting surfaces into smaller and smaller triangles, thus making things smoother

  9. Shaders: Low

  10. Shaders: Medium

  11. Shaders: High

  12. Shaders: Low

  13. Shaders: Medium

  14. Shaders: High

Recommend


More recommend