mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 02:28:51 +00:00
LightingShaderGen: Perform some lighting calculations with integers.
This commit is contained in:
parent
78623871f9
commit
387b9bf3c2
3 changed files with 27 additions and 25 deletions
|
@ -413,7 +413,8 @@ 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, lacc;\n"
|
||||
out.Write("\tfloat4 mat;\n"
|
||||
"\tint4 lacc;\n"
|
||||
"\tfloat3 ldir, h;\n"
|
||||
"\tfloat dist, dist2, attn;\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue