add intermediate array to fix shader index select

PBR
cosmonaut 2020-08-03 18:30:55 -07:00
parent 9aabffa8d7
commit 4a5f0d4461
2 changed files with 6 additions and 1 deletions

View File

@ -296,6 +296,11 @@ PixelShader PSArray[8] =
compile ps_3_0 AlbedoMetallicRoughnessNormalMapPS()
};
int PSIndices[8] =
{
0, 1, 2, 3, 4, 5, 6, 7
};
int ShaderIndex = 0;
Technique PBR
@ -303,6 +308,6 @@ Technique PBR
Pass
{
VertexShader = compile vs_3_0 main_vs();
PixelShader = (PSArray[ShaderIndex]);
PixelShader = (PSArray[PSIndices[ShaderIndex]]);
}
}

Binary file not shown.