YoYo Games Wiki

d3d_set_lighting(enabled)

From YoYoGames Wiki

Description

Enables or disables lighting.

Arguments

  • enabled

Remarks

Requires a registered copy of Game Maker. When lighting is enabled, you will need to add lights to the world. Otherwise, all the primitives will be black. Be sure that the light colour is white, or at least not black.