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

Per-vertex colors are broken #11

Open
rickgaiser opened this issue May 17, 2023 · 0 comments
Open

Per-vertex colors are broken #11

rickgaiser opened this issue May 17, 2023 · 0 comments

Comments

@rickgaiser
Copy link
Member

There are 3 VU1 renderers that should be able to handle per-vertex colors.
See vu1/general_pv_diff*.vcl

I think they work under specific conditions only:

  • color material needed?
  • lighting needed?

A good example to test the per-vertex colors is the "examples/nehe/lesson03", that should show a triangle with 3 different colors per vertex:
image
The left is how it should look (pc rendered), the right is how it looks currently (pcsx2 rendered).

Another related issue:
If enabling glEnable(GL_COLOR_MATERIAL); in the above example, ps2gl will mismatch the used vu1 renderer and the data sent to that renderer, causing a corrupted image to show. Probably caused by an unsupported feature that is not handled correctly.

Also broke becouse of the same issue:

  • examples/nehe/lesson04
  • examples/nehe/lesson05
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

No branches or pull requests

1 participant