Game Development Reference
In-Depth Information
Shader programming - Ambient and
Specular light
In this step, we will add Ambient and Specular light to our shader script as well as create
our custom lighting models.
Note
The custom lighting model is basically the function that will be used to calculate our sur-
face shader, which is the output of the surf() function's interaction with the lights.
The surf() function is the function that will take any UVs or data we need as input and
fill in the output structure SurfaceOutput (the predefined structure, such as Albedo ,
Normal , Emission , Specular , Gloss , and Alpha ).
Search WWH ::




Custom Search