SaturnRingLibrary 0.9
SGL wrapper
 
Loading...
Searching...
No Matches

◆ SetColorCalcMode()

static void SRL::VDP2::SetColorCalcMode ( VDP2::ColorCalcMode mode = VDP2::ColorCalcMode::UseColorRatiosTop,
bool extend = false )
inlinestatic

Sets VDP2 Half Transparent Color Calculation Mode (only one mode can be used at once)

Parameters
modeThe VDP2 color calculation mode to use
extendDesignates whether to extend color calculation to the top 3 Layer Priories instead of just top 2
Note
Extended color calculation has many restrictions detailed in VDP2 users manual- not all color modes can support extension simultaneously. If supported, 3rd priority pixels will blend with 2nd priority at a 50:50 ratio before the result is blended with top priority pixels. If unsupported the behavior is identical to non-extended color calculation.