D3d_set_shading - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
Sets whether to interpolate the lighting between vertexes. May not work properly on older graphics cards.
Parameters
- smooth boolean value whether or not to use smooth shading for lighting
Return Values
No values are returned from the function.
Example Call
// Demonstrates drawing a cube with preset lights using smooth shading.
d3d_set_lighting(true);
d3d_set_shading(true);
d3d_draw_block(30, 30, -20, 70, 70, 20, background_get_texture(bg_example), 1, 1);
NOTOC