From daa8265a4778e7ca81a839441f1b2ed771da7b5e Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 4 Aug 2021 19:58:03 +0300 Subject: [PATCH] rsx: Fix interpreter texture fetch --- rpcs3/Emu/RSX/Common/Interpreter/FragmentInterpreter.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/Common/Interpreter/FragmentInterpreter.glsl b/rpcs3/Emu/RSX/Common/Interpreter/FragmentInterpreter.glsl index 1ca3ae9622..8229eb42ee 100644 --- a/rpcs3/Emu/RSX/Common/Interpreter/FragmentInterpreter.glsl +++ b/rpcs3/Emu/RSX/Common/Interpreter/FragmentInterpreter.glsl @@ -308,7 +308,7 @@ vec4 _texture(in vec4 coord, float bias) ur1 = ur0 + ur0; const uint type = bitfieldExtract(texture_control, int(ur1), 2); - coord.xy *= texture_parameters[ur0].scale; + coord.xyz = (coord.xyz + texture_parameters[ur0].scale_bias.w) * texture_parameters[ur0].scale_bias.xyz; switch (type) { @@ -340,7 +340,7 @@ vec4 _textureLod(in vec4 coord, float lod) ur1 = ur0 + ur0; const uint type = bitfieldExtract(texture_control, int(ur1), 2); - coord.xy *= texture_parameters[ur0].scale; + coord.xyz = (coord.xyz + texture_parameters[ur0].scale_bias.w) * texture_parameters[ur0].scale_bias.xyz; switch (type) {