eggCamera OK

This commit is contained in:
robojumper
2025-03-25 23:26:07 +01:00
parent 8c8676aed1
commit e2c8c48b81
3 changed files with 4 additions and 9 deletions
+1 -1
View File
@@ -865,7 +865,7 @@ config.libs = [
EGGLib(
"gfx",
[
Object(NonMatching, "egg/gfx/eggCamera.cpp"),
Object(Matching, "egg/gfx/eggCamera.cpp"),
Object(Matching, "egg/gfx/eggPalette.cpp"),
Object(Matching, "egg/gfx/eggTexture.cpp"),
Object(NonMatching, "egg/gfx/eggUnk1.cpp"), # Unknown
+2 -2
View File
@@ -26,8 +26,6 @@ Matrix34f &LookAtCamera::getViewMatrixOld() {
}
void LookAtCamera::doUpdateMatrix() {
// NONMATCHING
mOtherMtx = mViewMtx;
Vector3f right(mPos);
@@ -44,6 +42,8 @@ void LookAtCamera::doUpdateMatrix() {
f32 ty = -up.dot(mPos);
f32 tz = -right.dot(mPos);
f32 t[] = { tx, ty, tz};
mViewMtx(0, 0) = forward(0);
mViewMtx(0, 1) = forward(1);
mViewMtx(0, 2) = forward(2);
+1 -6
View File
@@ -51,12 +51,7 @@ TextureBuffer *StateEfb::captureEfb(BufferType type, bool noTransparencyMaybe, u
switch (type) {
case BUFFER_0:
case BUFFER_1: {
f32 arg;
if (type == BUFFER_0) {
arg = 0.25f;
} else {
arg = 0.5f;
}
f32 arg = type == BUFFER_0 ? 0.25f : 0.5f;
sWorkSpaceV[2] = efb.vp.x2 * arg;
sWorkSpaceV[3] = efb.vp.y2 * arg;