mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-28 07:54:51 -04:00
Broken Attempt at Depth Bias
Pushing so I can ask the smarter people questions
This commit is contained in:
@@ -222,6 +222,9 @@ void J3DMatPacket::draw() {
|
||||
}
|
||||
#endif
|
||||
|
||||
PolygonOffset* temp = mpMaterial->getPEBlock()->getPolygonOffset();
|
||||
GX2SetPolygonOffset(temp->mFrontOffset, temp->mFrontScale, temp->mBackOffset, temp->mBackScale, temp->mClamp);
|
||||
|
||||
callDL();
|
||||
|
||||
J3DShapePacket* packet = getShapePacket();
|
||||
@@ -230,6 +233,8 @@ void J3DMatPacket::draw() {
|
||||
#endif
|
||||
packet->getShape()->loadPreDrawSetting();
|
||||
|
||||
// TODO: MAT4 sets polygon offset here in HD
|
||||
|
||||
while (packet != NULL) {
|
||||
if (packet->getDisplayListObj() != NULL) {
|
||||
packet->getDisplayListObj()->callDL();
|
||||
|
||||
Reference in New Issue
Block a user