Macaw OS C reference

Function light3d

#include <macaw3d.h>
void light3d(double dx, double dy, double dz, double sun, double amb);

Sets the sun for meshes: the way its light travels and how strong it is, and the light everywhere.

Parameters

dxdouble
The across part of the way sunlight travels. The direction can be any length.
dydouble
The up part of the way sunlight travels (negative shines down).
dzdouble
The z part of the way sunlight travels.
sundouble
How strong the sun is. Less than 0: 0.75.
ambdouble
How bright the light is everywhere, from 0 to 1. Less than 0: 0.35.

In Meshes you draw yourself, with clear3d, camera3d.