|
|
William F Pokorny <ano### [at] anonymousorg> wrote:
> A thought, but I'm thinking simpler at the moment. A weighted normalized
> vector addition to the incoming normal in the direction of the point
> light(1).
Yep - that's the revised version that I came up with during lunch, after I
scratched my initial suggestion.
Normalize the normal vector.
Normalize the Light source vector.
Have the normal function take a parameter that gets clamped to 0-1.
Then interpolate over the line segment extending between the actual normal and
the light source based on that parameter. No angles, no atan2, no matrix
transform.
Post a reply to this message
|
|