diff --git a/Effects/PBREffect.fx b/Effects/PBREffect.fx index 08fabd7..ee5ecb7 100644 --- a/Effects/PBREffect.fx +++ b/Effects/PBREffect.fx @@ -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]]); } } diff --git a/Effects/PBREffect.fxb b/Effects/PBREffect.fxb index a4ca2d7..9763762 100644 Binary files a/Effects/PBREffect.fxb and b/Effects/PBREffect.fxb differ