Example shaders? #36
Trainmaster9977
started this conversation in
General
Replies: 1 comment 3 replies
-
There aren't really "correct" labels for variables, which is why I don't provide them. It's also not really feasible to annotate all the shaders manually like this. All the hand translated code should have an associated comment in model.wgsl in ssbh_wgpu. The shaders are just math, so variable names don't help as much as you might think. Most of the work in analyzing shaders is finding the lines related to a value that you care about. There should be a script that I used for doing this for Yuzu's shaders. I can't guarantee that it's correct or still works. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was too invested in my own research to remember for a bit, but I recently realized again that well-
Given how this is used for ssbh_wgpu, and the material research website, both of which have their own variable names to my knowledge, there is a likely chance that there are some specific shaders that you have translated at least parts of, with variable names, and everything.
Given renderdoc and your own possible rewriting, it's not 100%, but I want to ask ya anyways- If you've translated any specific shaders by hand, to use as reference/example, which ones were they? And may I see them?
Obviously both ssbh_wgpu and the website have snippets, but unless parts correspond to a specific file, there's only so far things can go.
(And for the record, I'm referring to the things that the annotated shaders annotate. Referring to things like labeling specific temp values SSS_Blend or finalDiffuseShading, as well as fp_cNs that the annotated shaders don't cover.)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions