KallistiOS git master
Independent SDK for the Sega Dreamcast
|
PowerVR functionality which is managed globally More...
Topics | |
Fog | |
Hardware Fog API for the PowerVR | |
Palettes | |
Color palette management API of the PowerVR | |
Functions | |
void | pvr_set_bg_color (float r, float g, float b) |
Set the background plane color. | |
void | pvr_set_shadow_scale (int enable, float scale_value) |
Set cheap shadow parameters. | |
void | pvr_set_zclip (float zc) |
Set Z clipping depth. | |
PowerVR functionality which is managed globally
These are miscellaneous parameters you can set which affect the rendering process.
void pvr_set_bg_color | ( | float | r, |
float | g, | ||
float | b ) |
Set the background plane color.
This function sets the color of the area of the screen not covered by any other polygons.
r | Red component of the color to set |
g | Green component of the color to set |
b | Blue component of the color to set |
void pvr_set_shadow_scale | ( | int | enable, |
float | scale_value ) |
Set cheap shadow parameters.
This function sets up the PVR cheap shadow parameters for use. You can only specify one scale value per frame, so the effect that you can get from this is somewhat limited, but if you want simple shadows, this is the easiest way to do it.
Polygons affected by a shadow modifier volume will effectively multiply their final color by the scale value set here when shadows are enabled and the polygon is inside the modifier (or outside for exclusion volumes).
enable | Set to non-zero to enable cheap shadow mode. |
scale_value | Floating point value (between 0 and 1) representing how colors of polygons affected by and inside the volume will be modified by the shadow volume. |
void pvr_set_zclip | ( | float | zc | ) |
Set Z clipping depth.
This function sets the Z clipping depth. The default value for this is 0.0001.
zc | The new value to set the z clip parameter to. |