mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
include polygon attr opaqueness for translucent polygons in render key
This commit is contained in:
@ -474,6 +474,7 @@ void SetupPolygon(RendererPolygon* rp, Polygon* polygon)
|
|||||||
// - depthfunc
|
// - depthfunc
|
||||||
// -- depthwrite
|
// -- depthwrite
|
||||||
// --- polyID
|
// --- polyID
|
||||||
|
// ---- need opaque
|
||||||
// shadow mask polygons:
|
// shadow mask polygons:
|
||||||
// - depthfunc?????
|
// - depthfunc?????
|
||||||
// shadow polygons:
|
// shadow polygons:
|
||||||
@ -491,6 +492,8 @@ void SetupPolygon(RendererPolygon* rp, Polygon* polygon)
|
|||||||
rp->RenderKey |= (polygon->Attr >> 10) & 0x2; // bit11 - depth write
|
rp->RenderKey |= (polygon->Attr >> 10) & 0x2; // bit11 - depth write
|
||||||
rp->RenderKey |= (polygon->Attr >> 13) & 0x4; // bit15 - fog
|
rp->RenderKey |= (polygon->Attr >> 13) & 0x4; // bit15 - fog
|
||||||
rp->RenderKey |= (polygon->Attr & 0x3F000000) >> 16; // polygon ID
|
rp->RenderKey |= (polygon->Attr & 0x3F000000) >> 16; // polygon ID
|
||||||
|
if ((polygon->Attr & 0x001F0000) == 0x001F0000) // need opaque
|
||||||
|
rp->RenderKey |= 0x4000;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user