GordonFreeman
June 10th, 2006, 04:35 PM
I tried drawing some triangles with some material properties,such as shininess and ambient/diffuse reflectance.
Then,i enabled GL_LIGHT0 and tried to set GL_SPECULAR parameter with different colors,and the triangles reflected the light as expected...
At this point,i mapped a texture on those triangles,leaving unchanged the material parameters,and they always look like they are fully enlightened with a light color of (1,1,1,1) (full white) , no matter how i modify the light and material parameters,and even with a total dark light (0,0,0,0) or (0,0,0,1).
It seems that textured triangles are not affected by lighting operations,is it so??
Is it the same with Direct3D ?
Then,i enabled GL_LIGHT0 and tried to set GL_SPECULAR parameter with different colors,and the triangles reflected the light as expected...
At this point,i mapped a texture on those triangles,leaving unchanged the material parameters,and they always look like they are fully enlightened with a light color of (1,1,1,1) (full white) , no matter how i modify the light and material parameters,and even with a total dark light (0,0,0,0) or (0,0,0,1).
It seems that textured triangles are not affected by lighting operations,is it so??
Is it the same with Direct3D ?