jak-project/goal_src/jak2/engine/gfx/ocean
Hat Kid 3d08d079c9
jak2: ocean renderer (#2142)
Initial implementation of the `ocean-mid`, `ocean-far` and `ocean-near`
renderers for Jak 2.

There's still a few things to sort out, mainly:

- [x] ~Backwards compatibility with Jak 1. The only thing that currently
stands in the way of that is figuring out a clean way to "un-hardcode"
the texture base pointer in C++ without creating a completely separate
`OceanTexture` class for Jak 2. One thing I thought of would be
modifying `BucketRenderer`'s virtual `init_textures` method to also pass
the `GameVersion`, but I'm not sure if there's a better way.~
- [x] ~The sudden transition from `ocean-near` to `ocean-mid`. Not sure
why it's happening or how to fix it.~
- [x] The ocean has two new methods in Jak 2, `ocean::89` and
`ocean::79`, one of which seems to be related to time of day sky colors.
~Even without them implemented, the end result looks quite close, so we
may be able to skip them?~ `ocean::89` generates `ocean-mid` envmap
textures, so it will likely be required, but will not be handled right
now.

Reverted the VU prologue removals because it made the tests fail.
2023-01-22 18:07:46 -05:00
..
ocean-frames.gc decomp: ocean, ocean-mid, ocean-near, ocean-texture, ocean-transition, ocean-vu0 (#1994) 2022-10-30 19:09:35 -04:00
ocean-h.gc d/jak2: some minor fixes and workarounds to make debugging easier (#2116) 2023-01-14 12:36:41 -05:00
ocean-mid.gc jak2: ocean renderer (#2142) 2023-01-22 18:07:46 -05:00
ocean-near.gc jak2: ocean renderer (#2142) 2023-01-22 18:07:46 -05:00
ocean-tables.gc d/jak2: finish find-nearest | trajectory | editable-h and most of editable and editable-player (#1847) 2022-09-10 18:03:17 -04:00
ocean-texture.gc jak2: ocean renderer (#2142) 2023-01-22 18:07:46 -05:00
ocean-trans-tables.gc d/jak2: finish find-nearest | trajectory | editable-h and most of editable and editable-player (#1847) 2022-09-10 18:03:17 -04:00
ocean-transition.gc decomp: ocean, ocean-mid, ocean-near, ocean-texture, ocean-transition, ocean-vu0 (#1994) 2022-10-30 19:09:35 -04:00
ocean-vu0.gc decomp: ocean, ocean-mid, ocean-near, ocean-texture, ocean-transition, ocean-vu0 (#1994) 2022-10-30 19:09:35 -04:00
ocean.gc jak2: ocean renderer (#2142) 2023-01-22 18:07:46 -05:00