PixelShaderGen: Don't assign to input variables.

This commit is contained in:
Jules Blok
2014-12-26 00:56:12 +01:00
parent 8676891f77
commit 3ed777b0f9
3 changed files with 19 additions and 17 deletions

View File

@ -264,7 +264,7 @@ static void GenerateLightingShader(T& object, LightingUidData& uid_data, int com
GenerateLightShader<T>(object, uid_data, i, lit_index, coloralpha);
}
}
object.Write("lacc = clamp(lacc, 0, 255);");
object.Write("lacc = clamp(lacc, 0, 255);\n");
object.Write("%s%d = float4((mat * (lacc + (lacc >> 7))) >> 8) / 255.0;\n", dest, j);
object.Write("}\n");
}