Original Post
I'm trying to do just a simplistic ambient lighting effect, and I'm apparently baffled. I'm assuming I'm just lacking the information needed for going to doing my own lighting vs letting D3D handle it all. I'm enabling lighting. I'm setting the ambient light to an RGB value of (100,100,100). (although I've tried several different values to no effect. I'm using I'm using this as the vertex type: I'm setting the normals with a function I've seen multiple times throughout the web in my searching, so I'm kind of at a dead end. Everything seems to work fine if I don't enable lighting, but when I enable it, I just get pure blackness. It's rendering everything properly, it's just as if the light isn't actually affecting anything. Edit: I wasn't setting up a material...lol. It's the little bugs that bite the hardest.
FVF_VERTEX / (D3DFVF_XYZ Or D3DFVF_NORMAL Or D3DFVF_TEX1)
Public Type VERTEX
P As D3DVECTOR
N As D3DVECTOR
T As D3DVECTOR2
End Type