   shader dx 10 light and textures
  Hy.I have a mesh that have a part with texture and a part with color , how i implement a shader that if there is a texture on the geometry(UV) draw the color of the texture and if i not have texture draw a good light algorithm for rappresent the light ?There is a sample?thanks.   
  in particular:in directx 9 there is the D3DMATERIAL9 class , in directx 10 what i use?Thanks.   ;  You use effect variables.You right shaders that take any effect variable you like. You define you own material properties that way. You then communicate between the effect and the application, setting the effect varibales to the desired values before applying a pass.Read the effect section of the MSDN docs for more info.You can also read my post as I struggle with lighting myself.I'd start without any lighting at all though, just look up the color from a texture. Then try one light with lambert shading. Then try Phong, Then try multiple lights.