Exploring Shaders in Unity

Slides:



Advertisements
Similar presentations
Physically Based Shading
Advertisements

Computer Graphics - Shading -
COMPUTER GRAPHICS SOFTWARE.
Graphics Pipeline.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
Illumination Model How to compute color to represent a scene As in taking a photo in real life: – Camera – Lighting – Object Geometry Material Illumination.
Rendering (彩現 渲染).
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Lighting and Shading Wen-Chieh (Steve) Lin
(conventional Cartesian reference system)
Computer Graphics (Spring 2008) COMS 4160, Lecture 15: Illumination and Shading
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
7M836 Animation & Rendering
Pixel Shader Vertex Shader The Real-time Graphics Pipeline Input Assembler Rasterizer Output Merger.
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
1 Lecture 9 Lighting Light Sources Reflectance Camera Models.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Lighting & Shading.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
SET09115 Intro Graphics Programming
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
REAL-TIME VOLUME GRAPHICS Christof Rezk Salama Computer Graphics and Multimedia Group, University of Siegen, Germany Eurographics 2006 Real-Time Volume.
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
What is ? Open Graphics Library A cross-language, multi-platform API for rendering 2D and 3D computer graphics. The API is used to interact with a Graphics.
GPU Programming Robert Hero Quick Overview (The Old Way) Graphics cards process Triangles Graphics cards process Triangles Quads.
CHAPTER 4 Window Creation and Control © 2008 Cengage Learning EMEA.
Programmable Pipelines. Objectives Introduce programmable pipelines ­Vertex shaders ­Fragment shaders Introduce shading languages ­Needed to describe.
Programmable Pipelines. 2 Objectives Introduce programmable pipelines ­Vertex shaders ­Fragment shaders Introduce shading languages ­Needed to describe.
Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get.
Week 6 - Wednesday.  What did we talk about last time?  Light  Material  Sensors.
Taku KomuraComputer Graphics Local Illumination and Shading Computer Graphics – Lecture 10 Taku Komura Institute for Perception, Action.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Programmable Pipelines Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University.
Computing & Information Sciences Kansas State University CIS 536/636 Introduction to Computer Graphics Lecture 9 of 41 William H. Hsu Department of Computing.
Real-Time High Quality Rendering CSE 291 [Winter 2015], Lecture 2 Graphics Hardware Pipeline, Reflection and Rendering Equations, Taxonomy of Methods
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
UV Mapping After a 3D object has been modeled it must be prepared for texturing. 3D surfaces can be “unwrapped” into a 2D representation with. This process.
Visual Appearance Chapter 4 Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology.
Computing & Information Sciences Kansas State University Lecture 12 of 42CIS 636/736: (Introduction to) Computer Graphics CIS 636/736 Computer Graphics.
컴퓨터 그래픽스 Real-time Rendering 1. Introduction.
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Computer Graphics (Fall 2006) COMS 4160, Lecture 16: Illumination and Shading 1
Announcements Project 3a due today Project 3b due next Friday.
Computer Graphics Lecture 26 Mathematics of Lighting and Shading Part II Taqdees A. Siddiqi
Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim.
Illumination : Hearn & Baker Ch. 10
Shaders, part 2 alexandri zavodny.
- Introduction - Graphics Pipeline
Shading Revisited Some applications are intended to produce pictures that look photorealistic, or close to it The image should look like a photograph A.
Programmable Pipelines
The Graphic PipeLine
Visual Appearance Chapter 4
3D Graphics Rendering PPT By Ricardo Veguilla.
Bump Mapping -1 Three scales of detail on an object
Chapter 10: Computer Graphics
Understanding Theory and application of 3D
Understanding Theory and application of 3D
Illumination Model How to compute color to represent a scene
Graphics Processing Unit
Isaac Gang University of Mary Hardin-Baylor
An Algorithm of Eye-Based Ray Tracing on MATLAB
Chapter IX Lighting.
CS5500 Computer Graphics May 29, 2006
Presentation transcript:

Exploring Shaders in Unity Greg Miranda Greg@CreateSoftGroup.com Exploring Shaders in Unity

Introduction Who am I? What is a shader? Why are shaders important?

Basic Rendering Pipeline Rasterization Blending Vertex Shader Pixel Shader (Fragment Shader) Frame Buffer

Advanced Rendering Pipeline Shader Model 5 – DirectX 11 Hull Shader Domain Shader Hardware Tesselator Shader Model 4 – DirectX 10 Geometry Shader Shader Model 3 – DirectX 9, OpenGL Vertex Shader Pixel Shader (Fragment Shader) Frame Buffer

Lighting Specular Diffuse

Lighting - Diffuse Assume that light is reflected uniformly in all directions Lambertian term Basic idea: The light energy is spread out over a large surface area when the light is at an angle Diffuse = EL * Kd * dot(N, L)

Lighting - Specular Mirror Reflection Shininess Blinn-Phong Relates better to micro-facet BRDF theory Uses Half-Vector H = normalize(V + L) Specular = EL * Ks * (H ∙ N)s

PBR Physically Based Rendering Term for any technique that tries to achieve photorealism using a physical simulation of light. The rendering equation Tries to describe how a "unit" of light is obtained given all the incoming light that interacts with a specific point of a given scene.

Custom Shaders Standard Surface Shader Unlit Shader Image Effect Shader Compute Shader

Wrap-Up Questions?