Hi, I’m not sure if my subject heading used the correct terminology, but its basically what I want to try and accomplish.
I was reading the per-pixel lighting tutorial
by Ron Frazier, which is what I want to do, but it seems to assume some measure of uniformity among light intensity. What if I want to have varying degrees of intensity? For example I might want
to have a light that projects in non-circular patterns.
So in thinking about how I could get this to work, I thought that maybe I could use the same attenuation equations Frazier developed, but at selected vertices on my surface, scale these by some factor modeling how intense I want the light to be at that point.
Which leads to the question: At the fragment level how do you scale by a variable value? register combiners? fragment program?
Ofcourse, all the above could be nonsense, so I need some expert advice.