I am just trying to learn how to translate equations into UDK. So its not "kd max" but "max(0, L.N)" So the "max(0," is effectively clamping the L.N from -1...1 to 0...1.
Here's perhaps a more understandable way of writing that equation: I = kd * ka + kd * max(0, dot(L, n)) Max means to take the larger of the two values, 0 or the dot product of the light and normal vectors. Here the comma is used to separate two values in the max function. This lighting model is usually handled by the…
I have here an equation. where I is the RGB color to be displayed for a given point on the surface,kd is the RGB diffuse reflectance at the point,ka is the RGB ambient illumination, l is the unit vector in the direction of the light source, and n is the unit surface normal vector at the point. From what I can guess. kd…