In the HLSL example, it’s fairly obvious that we’re calculating the lighting using the normal and the light direction, clamping it to 0, and outputting this value in the Diffuse component of the ...