D3d set shading

Example
Suppose the following code is executed: d3d_set_shading(true); d3d_set_lighting(true); d3d_draw_block(-1,-1,-1,1,1,1,-1,-1,-1); d3d_set_lighting(false); d3d_set_shading(false); The line d3d_set_shading(true); tells Game Maker to turn smooth shading on. When the block is drawn, the lighting is smooth (a normal per vertex) as opposed to flat (a normal per face).