mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
VertexShaderGen: turn pseudo-mod into a simple and
The type of posmtx has changed over time: half -> float -> int. I assume this is supposed to be a modulo.
This commit is contained in:
parent
1f2b1caf42
commit
4ecd191a7e
@ -135,7 +135,7 @@ static T GenerateVertexShader(API_TYPE api_type)
|
|||||||
|
|
||||||
if (components & VB_HAS_NRMALL)
|
if (components & VB_HAS_NRMALL)
|
||||||
{
|
{
|
||||||
out.Write("int normidx = posmtx >= 32 ? (posmtx-32) : posmtx;\n");
|
out.Write("int normidx = posmtx & 31;\n");
|
||||||
out.Write("float3 N0 = " I_NORMALMATRICES"[normidx].xyz, N1 = " I_NORMALMATRICES"[normidx+1].xyz, N2 = " I_NORMALMATRICES"[normidx+2].xyz;\n");
|
out.Write("float3 N0 = " I_NORMALMATRICES"[normidx].xyz, N1 = " I_NORMALMATRICES"[normidx+1].xyz, N2 = " I_NORMALMATRICES"[normidx+2].xyz;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user