Hi.
I am trying to implement a simple phong model with a gf4.
The diffuse part of it is working fine.
However, I'm having some problems getting the specular part to work.
My initial idea was to do it like this
unit 1: normalize H
unit 2: lookup normal from bumpmap
unit 3: Exponentiate via a dot3(unit 1, unit 2) and an exponent texture.
So, when i looked at it, DOT_PRODUCT_TEXTURE_1D, seemed like the thing to use, but now it appears that the input to one side of the dot product must be the coordinates bound to the unit.
Is it possible to do dot(normalize(H),bumpnormal), and use it to lookup in a texture?
If, can anyone hint me what to use?
I am using Cg, not that it seems to simplify matters, at least in this case.
Jonas




