mirror of
https://github.com/zeldaret/ss
synced 2026-07-10 06:26:47 -04:00
eggCamera OK
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user