Paul Gofman : d3dx9: Implement light and material effect states application.