-
Notifications
You must be signed in to change notification settings - Fork 100
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
fix wireframe #67
fix wireframe #67
Conversation
It definitely needs testing in other games as well, the issue happens outside of Illusion games too. As long as it's not causing a dependency on specific games then it's fine to add. |
Other games... I only have Insult Order... Do you know of any games where CameraClearFlags had to be set? This problem seems to be caused by a post-effect using CameraClearFlags.Depth that has been changed to CameraClearFlags.Color. |
It was added in a12e903, I don't remember what game exactly had issues but it was most likely one of Illusion games, likely AI-Girl or HS2. Why not keep the fix and add it to CameraWithWireframe? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I made some minor changes to clean it up a bit in case someone has to fix it again in the future.
Thanks for refactoring! |
Just tested on RailRoader and wireframe unfortunetly still not working. |
Oops. |
I just got Railroader so I'm not sure. I can try previous version and let you know. |
Can confirm it didn't work before in 5.1.0 either. |
Sorry, but I do not have that game and will not buy it for this issue. If it was working on an earlier version, I would have thought about it for a minute. |
Railroader uses URP and onPreRender/onPostRender aren't called in that pipeline. @ManlyMarco The reference assemblies in RUE don't include URP members, how would one go about solving this, or is it not possible? |
It has to be done with reflection since older unity versions don't have URP. |
I attempted to fix #37.
When checked with KKS/KK/HS2, the wireframe did not render and blue screened.
Before:
A game-specific fix for Illusion was needed.
CameraClearFlags was not needed and certain post-effects needed to be disabled.
However, I can imagine that some games may require CameraClearFlags.
After:
What should I do with this code?
Should I check the process name or something to separate the processes?
If it is not good for applications other than Illusion, then we can discard this code.