Original Post
I'm drawing a rotating cube with ambient and diffuse lighting. But the lighting isn't smooth. Instead of shading gradually as the cube rotates, the shading instantly switches between max shadow and max lit.
Any ideas how to fix that please?
[EDIT]Problem solved.
After Zao hinted on IRC that I should double check my mesh I realised that the last two sides did not have normals defined.
Many thanks all :)
[Edited by - N3wbie on July 22, 2010 6:32:23 AM]
Any ideas how to fix that please?
[EDIT]Problem solved.
After Zao hinted on IRC that I should double check my mesh I realised that the last two sides did not have normals defined.
Many thanks all :)
[Edited by - N3wbie on July 22, 2010 6:32:23 AM]