set_debug_draw
Diagnose visual issues by switching the running game's viewport debug draw mode (unshaded, wireframe, overdraw, normal_buffer, lighting) and screenshotting a single render stage.
Instructions
Switch the RUNNING game's viewport debug draw mode, then screenshot to see one render stage in isolation. unshaded = albedo only (clears lighting/fog/exposure as suspects in one shot). wireframe = is the geometry even there (culled or degenerate meshes show as nothing). overdraw = transparency cost. normal_buffer = flipped or NaN normals. lighting = light contribution only. normal = back to the real image. Reach for this FIRST when the picture is wrong; render_probe then answers the same question in numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | normal | unshaded | lighting | overdraw | wireframe | normal_buffer |