mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
LightingShaderGen: Perform more lighting calculations with integers.
This commit is contained in:
parent
387b9bf3c2
commit
3e6efdb53e
3 changed files with 11 additions and 13 deletions
|
@ -413,8 +413,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
|
|||
out.Write("\tfloat3 _norm0 = normalize(Normal.xyz);\n\n");
|
||||
out.Write("\tfloat3 pos = float3(clipPos.x,clipPos.y,Normal.w);\n");
|
||||
|
||||
out.Write("\tfloat4 mat;\n"
|
||||
"\tint4 lacc;\n"
|
||||
out.Write("\tint4 lacc;\n"
|
||||
"\tfloat3 ldir, h;\n"
|
||||
"\tfloat dist, dist2, attn;\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue