DirectX 9 - Point Light

Started by
0 comments, last by x11001001101x 12 years, 1 month ago
Hello,

I am learning how to create lights with directx 9 using C++ but I am having an issue with Point light.
For some reason the light does not turn on, or at least it doesn't appear on my material.

I used and modified Microsoft's code for the directional lighting - Tutorial 4 in the SDK, so I converted it to a Point light but it stopped showing up.

My updated code with the texture I used is in the attachments.

I would appreciate it if you could help.

Thanks.
Advertisement
Never mind, I figured out the problem.

This topic is closed to new replies.

Advertisement