Original Post
hi: i use pixpiple render my secne.but, i found if i set gloabl ambient and diffuse of direction light to zero, i can see the vertex color of terrain. i thought this is black, but not.so i did't know if i set which rendrestade to result this. if i change it to shader, my vs light computation is:
Quote:this is black.
Out.color[0].rgb = gAmbient * matAmbient + In.color[0].rgb * gLightDiffuse * dot(normal, dir); Out.color[0].a = In.color[0].a;