Macaw OS C reference

Function gpu_shademodel

#include <macawgpu.h>
void gpu_shademodel(const char *m);

Sets how lighting is worked out across each triangle.

Parameters

mconst char *
"flat" for one shade a face, "smooth" (how it starts) for blending between corners, "phong" for working it out across the face, so highlights land where they should.

In Textures, light and fog, with gpu_bindtexture, gpu_light, gpu_lightoff, gpu_ambient, gpu_material, gpu_fog, gpu_pointsize, gpu_stats.