Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ocean-vu0 mips2c and decomp ocean-texture #1230

Merged
merged 7 commits into from
Mar 12, 2022
Merged

add ocean-vu0 mips2c and decomp ocean-texture #1230

merged 7 commits into from
Mar 12, 2022

Conversation

water111
Copy link
Collaborator

@water111 water111 commented Mar 9, 2022

This adds the ocean-vu0 functions that are used to generate the ocean vertices. I believe these vertices are patterned by the other ocean renderers. I have no way to really confirm that the vertices that come out are prefect, but they are reasonable values, and it seems like every other vector is a normal (which makes sense, we'll need these for the environment mapping). They change slowly, like you'd expect.

It also has the decompilation of the ocean-texture.gc GOAL code, which is a terrible mess of GS setup stuff. It has a VU1 program (pretty simple) and renderers to a texture so it'll require some work on the C++ side before it does anything interesting.

@water111
Copy link
Collaborator Author

This also adds the ocean-far renderer (it's really simple), and a more optimized version of ocean-texture (about 2x faster than the current unoptimized, now down to 0.2 ms, which is probably good enough for now)

Sadly ocean-mid and ocean-near are both pretty complicated. I am hoping that ocean mid and near do the same thing, but only near handles clipping, and we can do the usual trick of not using the near renderer.

@water111 water111 merged commit bb85eaf into master Mar 12, 2022
@water111 water111 deleted the w/ocean-vu0 branch March 12, 2022 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant