mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a/vk: Fix shadowmap readback in frag shader
This commit is contained in:
committed by
mborgerson
parent
f08d4a89fb
commit
b9e68a760b
@@ -646,7 +646,7 @@ static void psh_append_shadowmap(const struct PixelShader *ps, int i, bool compa
|
||||
"uvec4 t%d_depth_raw = textureLod(texSamp%d, pT%d.xy/pT%d.w, 0);\n", i, i, i, i);
|
||||
mstring_append_fmt(
|
||||
vars,
|
||||
"vec4 t%d_depth = vec4(float(t%d_depth_raw.x & 0xFFFFFF), 1.0, 0.0, 0.0);\n",
|
||||
"vec4 t%d_depth = vec4(float(t%d_depth_raw.x >> 8) / 0xFFFFFF, 1.0, 0.0, 0.0);\n",
|
||||
i, i);
|
||||
} else {
|
||||
mstring_append_fmt(
|
||||
|
||||
Reference in New Issue
Block a user