diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2023-07-04 00:14:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-03 19:14:31 -0400 |
| commit | d5410fa2b8e5e963275ce7c0113695a335530e8c (patch) | |
| tree | 211e544489a0867dfbe96e6ea39a34a4fa637dd0 /src/code/PreRender.c | |
| parent | fe1b59eccc1d0eb37d106475528376b2e558fff5 (diff) | |
Fix comment about RM_VISCVG in PreRender_FetchFbufCoverage (#1514)
Diffstat (limited to 'src/code/PreRender.c')
| -rw-r--r-- | src/code/PreRender.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/code/PreRender.c b/src/code/PreRender.c index 44af41715..dc12fd2a5 100644 --- a/src/code/PreRender.c +++ b/src/code/PreRender.c @@ -369,12 +369,12 @@ void PreRender_FetchFbufCoverage(PreRender* this, Gfx** gfxp) { // // G_RM_VISCVG is the following special render mode: // IM_RD : Allow read-modify-write operations on the framebuffer - // FORCE_BL : Apply the blender to all pixels rather than just edges - // (G_BL_CLR_IN * G_BL_0 + G_BL_CLR_BL * G_BL_A_MEM) / (G_BL_0 + G_BL_CLR_BL) = G_BL_A_MEM + // FORCE_BL : Apply the blender to all pixels rather than just edges, skip the division step of the blend formula + // (G_BL_CLR_IN * G_BL_0 + G_BL_CLR_BL * G_BL_A_MEM) = G_BL_CLR_BL * G_BL_A_MEM // - // G_BL_A_MEM ("memory alpha") is coverage, therefore this blender configuration emits only the coverage - // and discards any pixel colors. For an RGBA16 framebuffer, each of the three color channels r,g,b will - // receive the coverage value individually. + // G_BL_A_MEM ("memory alpha") is coverage, therefore this blender configuration emits only the coverage (up to a + // constant factor determined by blend color) and discards any pixel colors. For an RGBA16 framebuffer, each of the + // three color channels r,g,b will receive the coverage value individually. // // Also disables other modes such as alpha compare and texture perspective correction gDPSetOtherMode(gfx++, |
