mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-29 17:42:20 -04:00
d_bg_w done (#2169)
* ClassifyPlane matched * d_bg_w full match * remove asm
This commit is contained in:
+954
-737
File diff suppressed because it is too large
Load Diff
@@ -539,7 +539,7 @@ SECTION_SDATA2 static f32 lit_5301[1 + 1 /* padding */] = {
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void dBgWKCol::WallCorrectSort(dBgS_Acch* param_0) {
|
||||
asm bool dBgWKCol::WallCorrectSort(dBgS_Acch* param_0) {
|
||||
nofralloc
|
||||
#include "asm/d/bg/d_bg_w_kcol/WallCorrectSort__8dBgWKColFP9dBgS_Acch.s"
|
||||
}
|
||||
|
||||
+2
-1
@@ -4019,7 +4019,8 @@ extern "C" asm void checkThrowDamage__9daPy_py_cCFv() {
|
||||
#pragma pop
|
||||
|
||||
/* 801829EC-801829F0 17D32C 0004+00 1/1 0/0 0/0 .text GetNP__8cM3dGPlaFv */
|
||||
void cM3dGPla::GetNP() {
|
||||
// void cM3dGPla::GetNP() {
|
||||
extern "C" void GetNP__8cM3dGPlaFv() {
|
||||
/* empty function */
|
||||
}
|
||||
|
||||
|
||||
@@ -1657,7 +1657,7 @@ int dDlst_shadowPoly_c::set(cBgD_Vtx_t* i_vtx, u16 param_1, u16 param_2, u16 par
|
||||
|
||||
dDlst_shadowTri_c* dst = getTri() + mCount;
|
||||
|
||||
cXyz b(i_plane->i_GetNP());
|
||||
cXyz b(i_plane->GetNP());
|
||||
f32 temp_f3 = (1.0f - fabsf(b.y));
|
||||
temp_f3 *= temp_f3;
|
||||
|
||||
@@ -1767,7 +1767,7 @@ SECTION_SDATA2 static f32 lit_5062 = -90.0f;
|
||||
static int psdRealCallBack(cBgS_ShdwDraw* param_0, cBgD_Vtx_t* param_1, int param_2,
|
||||
int param_3, int param_4, cM3dGPla* param_5) {
|
||||
ShdwDrawPoly_c* shdwDrawPoly = (ShdwDrawPoly_c*)param_0;
|
||||
const cXyz* normal = param_5->i_GetNP();
|
||||
const cXyz* normal = param_5->GetNP();
|
||||
if (shdwDrawPoly->getLightVec()->inprod(*normal) < -0.2f) {
|
||||
cXyz* center = shdwDrawPoly->getCenter();
|
||||
if (normal->x * center->x + normal->y * center->y + normal->z * center->z + param_5->GetD() > -90.f) {
|
||||
|
||||
Reference in New Issue
Block a user