mirror of
https://github.com/open-goal/jak-project
synced 2026-07-31 08:16:02 -04:00
jak2/3: implement ocean envmap (#4303)
Implements the envmap for the ocean generated by `ocean-method-89`/`ocean-method-88`. While the resulting envmap looks accurate compared to PCSX2 in Renderdoc, the end result does not seem 100% identical, but it is a big improvement over the default placeholder texture. Closes #3417
This commit is contained in:
@@ -1167,11 +1167,9 @@
|
||||
(let* ((s4-0 (-> *display* frames (-> *display* on-screen) global-buf))
|
||||
(s5-2 (-> s4-0 base))
|
||||
)
|
||||
;; TODO handle ocean::79 and ocean::89
|
||||
;; diasble tod ocean stuff
|
||||
;; (if (-> *time-of-day-context* sky)
|
||||
;; (ocean-method-89 this s4-0)
|
||||
;; )
|
||||
(if (-> *time-of-day-context* sky)
|
||||
(ocean-method-89 this s4-0)
|
||||
)
|
||||
(draw-ocean-texture this s4-0 (the-as int (-> this verts)))
|
||||
;; disable whatever this is
|
||||
;; (ocean-method-79 this s4-0)
|
||||
|
||||
@@ -1191,10 +1191,9 @@
|
||||
(let* ((s4-1 (-> *display* frames (-> *display* on-screen) global-buf))
|
||||
(s5-2 (-> s4-1 base))
|
||||
)
|
||||
;; og:preserve-this not-yet-implemented
|
||||
; (if (-> *time-of-day-context* sky)
|
||||
; (ocean-method-88 this s4-1)
|
||||
; )
|
||||
(if (-> *time-of-day-context* sky)
|
||||
(ocean-method-88 this s4-1)
|
||||
)
|
||||
(draw-ocean-texture this s4-1 (the-as int (-> this verts)))
|
||||
; (ocean-method-89 this s4-1)
|
||||
(init-buffer! this s4-1)
|
||||
|
||||
Reference in New Issue
Block a user