mirror of
https://github.com/open-goal/jak-project
synced 2026-09-04 10:41:44 -04:00
(init-vf0-vector) to make vector code a bit more readable (#494)
* decomp: Use a macro for loading VF0 (maybe should be in goal-lib.gc?) * update references * lint: format * delete now unused file
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
(vf1 :class vf)
|
||||
(vf2 :class vf)
|
||||
)
|
||||
(.lvf vf0 (new 'static 'vector :x 0.0 :y 0.0 :z 0.0 :w 1.0))
|
||||
(init-vf0-vector)
|
||||
(TODO.VRGET vf1)
|
||||
(.sqrt.vf Q vf1 :ftf #b0)
|
||||
(.add.vf vf2 vf0 Q :mask #b1)
|
||||
@@ -158,7 +158,7 @@
|
||||
(rlet ((vf0 :class vf)
|
||||
(vf1 :class vf)
|
||||
)
|
||||
(.lvf vf0 (new 'static 'vector :x 0.0 :y 0.0 :z 0.0 :w 1.0))
|
||||
(init-vf0-vector)
|
||||
(TODO.VRGET vf1)
|
||||
(.sub.w.vf vf1 vf1 vf0)
|
||||
(.mov v0-0 vf1)
|
||||
|
||||
Reference in New Issue
Block a user