basic lighting
My textured quad renders fine with d3d lighting off. My quad does not render with d3d lighting on, d3drs_ambient full, and the quad's material set to full ambient.
Should the quad be drawn with color? Why? Do I need to create and enable a d3dlight9? Why doesn't d3drs_ambient handle the lighting for me?
I've tried rendering with normals, but do I need them with ambient lighting?
You don't need normals for ambient lighting. You need lighting enabled, ambient set in the material, and the ambient render state set.
You've got a bug somewhere else in your code. Disable the texture stages, fill the background with something other than black, and then draw the quad. Is it unlighted (i.e. black)?
You've got a bug somewhere else in your code. Disable the texture stages, fill the background with something other than black, and then draw the quad. Is it unlighted (i.e. black)?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement