Well it will probably be easier if you just add it yourself since I just modify the light demo that comes with DGSDK.
Anyway make this code (lines 17-25):
dbLoadObject ( "models\statue.x", 1 );
dbLoadImage ( "models\bumpmap.jpg", 1 );
dbXRotateObject ( 1, 270.0f );
dbFixObjectPivot ( 1 );
dbSetLightMappingOn ( 1, 1 );
dbSetObjectSpecular ( 1, 0 );
dbRotateObject ( 1, 0, 0, 0 );
Into this code:
dbLoadObject ( "models\statue.x", 1 );
dbLoadImage ( "models\bumpmap.jpg", 1 );
dbXRotateObject ( 1, 270.0f );
dbFixObjectPivot ( 1 );
dbSetLightMappingOn ( 1, 1 );
dbSetObjectSpecular ( 1, 0 );
dbSetShadowShadingOn ( 1 );
dbRotateObject ( 1, 0, 0, 0 );
And if you want to see the shading better do this:
dbLoadObject ( "models\statue.x", 1 );
//dbLoadImage ( "models\bumpmap.jpg", 1 );
dbXRotateObject ( 1, 270.0f );
dbFixObjectPivot ( 1 );
//dbSetLightMappingOn ( 1, 1 );
//dbSetObjectSpecular ( 1, 0 );
dbSetShadowShadingOn ( 1 );
dbRotateObject ( 1, 0, 0, 0 );
I get a FPS = 1 when I do this. And I need to use the stop function in the IDE instead of ESC to stop it. Probably has to do with the FPS = 1.