Microsoft DirectX 8.0 (Visual Basic)

Enabling and Disabling the Lighting Engine

By default, Microsoft® Direct3D® performs lighting calculations on all vertices, even those without vertex normals. However, you can disable lighting through the D3DRS_LIGHTING render state. Call the Direct3DDevice8.SetRenderState method, passing D3DRS_LIGHTING as the first parameter, and True or False as the second parameter. Setting the state to True enables lighting (the default), and setting it to False disables lighting operations.