No light but the mesh is drawn white, what the hell?

Started by
5 comments, last by Alload 22 years, 1 month ago
I put the lighting on using the SetRenderState(D3DRS_LIGHTING, TRUE), but I haven''t created any light. The result is that all polygons are white on screen. What''s going on? I thought if there was no light nothing would appear on screen.
Advertisement
I''m not so sure about D3D, but in OpenGL this would mean that texturing is enabled but no texture is specified.

I''m probably way off base here though.

- Pete
Textureing isn''t enabled either.
Does your vertex data contain a normal vector?
Yes it does.
emissive RGB in vertices or material?
Yes, I forgot to turn off emissive color in material.

Thanks.

This topic is closed to new replies.

Advertisement