mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 21:55:46 +00:00
gl_shader_decompiler: Implement Texture3D for TEXS.
This commit is contained in:
parent
1ac135d85b
commit
e8eee95c8e
1 changed files with 7 additions and 0 deletions
|
@ -1578,6 +1578,13 @@ private:
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case Tegra::Shader::TextureType::Texture3D: {
|
||||||
|
std::string x = regs.GetRegisterAsFloat(instr.gpr8);
|
||||||
|
std::string y = regs.GetRegisterAsFloat(instr.gpr20);
|
||||||
|
std::string z = regs.GetRegisterAsFloat(instr.gpr20.Value() + 1);
|
||||||
|
coord = "vec3 coords = vec3(" + x + ", " + y + ", " + z + ");";
|
||||||
|
break;
|
||||||
|
}
|
||||||
case Tegra::Shader::TextureType::TextureCube: {
|
case Tegra::Shader::TextureType::TextureCube: {
|
||||||
std::string x = regs.GetRegisterAsFloat(instr.gpr8);
|
std::string x = regs.GetRegisterAsFloat(instr.gpr8);
|
||||||
std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
|
std::string y = regs.GetRegisterAsFloat(instr.gpr8.Value() + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue