add low FOV mode
This commit is contained in:
parent
b9dcb09265
commit
b3b5ab4c03
1 changed files with 11 additions and 0 deletions
11
dlist.asm
11
dlist.asm
|
@ -1,6 +1,8 @@
|
||||||
include "inc/F3DEX2.inc"
|
include "inc/F3DEX2.inc"
|
||||||
include "inc/dlist.inc"
|
include "inc/dlist.inc"
|
||||||
|
|
||||||
|
constant FOV90(0)
|
||||||
|
|
||||||
macro _g(variable c, variable a, variable b) {
|
macro _g(variable c, variable a, variable b) {
|
||||||
WriteDL((c << 24) | a, b)
|
WriteDL((c << 24) | a, b)
|
||||||
}
|
}
|
||||||
|
@ -207,8 +209,13 @@ viewport:
|
||||||
dh WIDTH/2*4, HEIGHT/2*4, 0x000, 0 // translation
|
dh WIDTH/2*4, HEIGHT/2*4, 0x000, 0 // translation
|
||||||
|
|
||||||
view_mat0:
|
view_mat0:
|
||||||
|
if FOV90 {
|
||||||
Mat.X($0000'C000, $0000'0000, $0000'0000, $0000'0000)
|
Mat.X($0000'C000, $0000'0000, $0000'0000, $0000'0000)
|
||||||
Mat.Y($0000'0000, $0001'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.Z($0000'0000, $0000'0000, $FFFE'FF00, $FFFF'0000)
|
||||||
Mat.W($0000'0000, $0000'0000, $FFFD'FF00, $0000'0000)
|
Mat.W($0000'0000, $0000'0000, $FFFD'FF00, $0000'0000)
|
||||||
Mat.rix()
|
Mat.rix()
|
||||||
|
@ -218,7 +225,11 @@ view_mat1:
|
||||||
Mat.X($0001'0000, $0000'0000, $0000'0000, $0000'0000)
|
Mat.X($0001'0000, $0000'0000, $0000'0000, $0000'0000)
|
||||||
Mat.Y($0000'0000, $0001'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)
|
Mat.Z($0000'0000, $0000'0000, $0001'0000, $0000'0000)
|
||||||
|
if FOV90 {
|
||||||
Mat.W($0000'0000, $FFD4'0000, $FF80'0000, $0001'0000)
|
Mat.W($0000'0000, $FFD4'0000, $FF80'0000, $0001'0000)
|
||||||
|
} else {
|
||||||
|
Mat.W($0000'0000, $FFD4'0000, $FF40'0000, $0001'0000)
|
||||||
|
}
|
||||||
Mat.rix()
|
Mat.rix()
|
||||||
|
|
||||||
model_mat:
|
model_mat:
|
||||||
|
|
Loading…
Add table
Reference in a new issue