-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Unity 2021 Shaders and Effects Cookbook
By :

The specularity of an object's surface simply describes how shiny it is. In the shader world, these types of effects are often referred to as view-dependent effects. This is because, in order to achieve a realistic Specular effect in your shaders, you need to include the direction of the camera or the user who 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 the surface compared to the user's view direction. It is a common Specular model used in many applications, from games to movies. While it is not the most realistic in terms of accurately modeling the reflected Specular, it gives a great approximation of what is expected of the shininess that performs well in most situations. Additionally, if your object is further away from the camera and there is no need for a perfectly accurate Specular, this is a great way...