LightingShaderGen: Perform more lighting calculations with integers.
This commit is contained in:
1 parent
387b9bf3c2
commit
3e6efdb53e
3 files changed
+11
-13
No files matched your search
@@ -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");
|
||||
|
||||
|
||||
Reference in new issue
Block a user