add low FOV mode

This commit is contained in:
Connor Olding 2018-09-29 07:23:32 +02:00
parent b9dcb09265
commit b3b5ab4c03

View File

@ -1,6 +1,8 @@
include "inc/F3DEX2.inc"
include "inc/dlist.inc"
constant FOV90(0)
macro _g(variable c, variable a, variable b) {
WriteDL((c << 24) | a, b)
}
@ -207,8 +209,13 @@ viewport:
dh WIDTH/2*4, HEIGHT/2*4, 0x000, 0 // translation
view_mat0:
if FOV90 {
Mat.X($0000'C000, $0000'0000, $0000'0000, $0000'0000)
Mat.Y($0000'0000, $0001'0000, $0000'0000, $0000'0000)
} else {
Mat.X($0001'4C8D, $0000'0000, $0000'0000, $0000'0000)
Mat.Y($0000'0000, $0001'BB67, $0000'0000, $0000'0000)
}
Mat.Z($0000'0000, $0000'0000, $FFFE'FF00, $FFFF'0000)
Mat.W($0000'0000, $0000'0000, $FFFD'FF00, $0000'0000)
Mat.rix()
@ -218,7 +225,11 @@ view_mat1:
Mat.X($0001'0000, $0000'0000, $0000'0000, $0000'0000)
Mat.Y($0000'0000, $0001'0000, $0000'0000, $0000'0000)
Mat.Z($0000'0000, $0000'0000, $0001'0000, $0000'0000)
if FOV90 {
Mat.W($0000'0000, $FFD4'0000, $FF80'0000, $0001'0000)
} else {
Mat.W($0000'0000, $FFD4'0000, $FF40'0000, $0001'0000)
}
Mat.rix()
model_mat: