Reader small image

You're reading from  Unity 5.x Shaders and Effects Cookbook

Product typeBook
Published inFeb 2016
Reading LevelIntermediate
Publisher
ISBN-139781785285240
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Alan Zucconi
Alan Zucconi
author image
Alan Zucconi

Alan Zucconi is a passionate developer, author, and lecturer, recognized as one of Develop's 30 under 30. His expertise has been built over the past 10 years, working in the intersection between creativity and education. Starting in 2015, he published a series of educational tutorials for other developers and machine learning enthusiasts.
Read more about Alan Zucconi

Right arrow

Creating a Phong Specular type


The specularity of an object surface simply describes how shiny it is. These types of effects are often referred to as view-dependent effects in the shader world. This is because in order to achieve a realistic Specular effect in your shaders, you need to include the direction that the camera or user is facing the object's surface. The most basic and performance-friendly Specular type is the Phong Specular effect. It is the calculation of the light direction reflecting off of the surface compared to the user's view direction. It is a very common Specular model used in many applications, from games to movies. While it isn't the most realistic in terms of accurately modeling the reflected Specular, it gives a great approximation that performs well in most situations. Additionally, if your object is further away from the camera and there is no need for a very accurate Specular, this is a great way to provide a Specular effect to your shaders.

In this recipe, we...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Shaders and Effects Cookbook
Published in: Feb 2016Publisher: ISBN-13: 9781785285240

Author (1)

author image
Alan Zucconi

Alan Zucconi is a passionate developer, author, and lecturer, recognized as one of Develop's 30 under 30. His expertise has been built over the past 10 years, working in the intersection between creativity and education. Starting in 2015, he published a series of educational tutorials for other developers and machine learning enthusiasts.
Read more about Alan Zucconi