mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a: Fix cubemap fourth texture coordinate component handling
Xbox hardware ignores fourth texture coordinate component for cubemaps.
This commit is contained in:
@@ -984,8 +984,8 @@ static MString* psh_convert(struct PixelShader *ps)
|
||||
}
|
||||
break;
|
||||
case PS_TEXTUREMODES_CUBEMAP:
|
||||
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, pT%d.xyz / pT%d.w);\n",
|
||||
i, i, i, i);
|
||||
mstring_append_fmt(vars, "vec4 t%d = texture(texSamp%d, pT%d.xyz);\n",
|
||||
i, i, i);
|
||||
break;
|
||||
case PS_TEXTUREMODES_PASSTHRU:
|
||||
assert(ps->state.border_logical_size[i][0] == 0.0f && "Unexpected border texture on passthru");
|
||||
|
||||
Reference in New Issue
Block a user