LoL this makes me mad. I dont know if it is this hlsl compiler or max but it is crazy. I've put my code into some fancy functions like Xoliul did, to get a better overview. But instead working like before as I would expect it, it does not I've got no compile errors or anything else, but my specular calculation doesn't work…
thx Drew++ for your explanation :) During my work on that specular lighting I've found a bug in my shader, whenever I put a light between my models the outer one will be lit like the inner one? I think a picture describes this better: and my lambert shader:////////////////////////////////////////////////////////////////…