Module Textures, light and fog
#include <macawgpu.h>
Functions
- gpu_bindtexture
- Draws the next shapes with a picture on them, a texture, placed by
gpu_texcoord or a buffer's t. - gpu_light
- Sets up one of the eight lights and switches it on.
- gpu_lightoff
- Switches one light off.
- gpu_ambient
- Sets the light that falls everywhere, even where no light reaches, so shadows aren't black.
- gpu_shademodel
- Sets how lighting is worked out across each triangle.
- gpu_material
- Sets how shiny the surfaces you draw next are.
- gpu_fog
- Sets the fog, which fades things into a colour the further away they are.
- gpu_pointsize
- Sets how big the dots are when you draw with
"points". - gpu_stats
- Tells you how much was drawn, to help you find out what's slow.