Module Reflection probes
#include <macawlevel.h>A shiny surface reflects the nearest reflection probe: a point in the level whose view all round is baked into a cube map (six square pictures, one each way). Probes need a graphics card with cube maps; without one, shiny surfaces are drawn as they are. A probe is a number of its own, not a level.
Functions
- bakeprobes
- Bakes any of a level's own probes that aren't baked yet, a little at a time.
- levelprobelimit
- Sets how many probes may be on the graphics card at once, the ones nearest the camera, or asks.
- probecount
- Tells you how many probes a built level has.
- probeat
- Gives one of a level's probes as a probe number, for the calls below.
- newprobe
- Makes a probe of your own at a place.
- probepos
- Gives where a probe is.
- probebake
- Bakes a probe, drawing one of its six views each call.
- probebaked
- Tells you whether a probe has been baked.
- probeenv
- Gives a baked probe's cube map.
- levelsetprobes
- Tells a built level which cube maps its shiny surfaces reflect.
- levelprobedata
- Gives a level's baked probes as the bytes of a
.prbfile, for you to save. - applylevelprobes
- Gives a built level's probes their cube maps from a
.prbfile's bytes, so they don't need baking again.