Simple Python script to determine which one of your 3913403248 shaders disassembly is being displayed in Razor.
- Get python 3.6+
- Install requirements via
python3 -m pip install -r requirements.txt
- Put your .gxp shaders into
./shaders_gxp
. - Put your disasm from Razor into
./input.txt
. Don't worry about formatting. - Put
psp2shaderperf.exe
into./
. - Run the script with
python3 shadersim.py
.
- The bigger the value, the more similar this shader is to your input.
- If there's one shader with value > 100, it’s the one.
- If there are several items with value > 100 probably there are extremely similar/duplicate shaders and you may need to compare the output by eye (unless there is one significantly bigger value like 150 or 200, then this one is the one).
- <100 is garbage and too different.