diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-06-27 09:59:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-27 09:59:48 +0200 |
| commit | c4838b9cbc8e64cf651914d429ecda889463901b (patch) | |
| tree | d371389cabf759f9077c1cccbc614cc21228ec57 /Source/Core/VideoCommon/LightingShaderGen.cpp | |
| parent | 6ed001ad42f0d0a680a2286c5a169ec3bad814e6 (diff) | |
| parent | d9fc1e01b4d2c6623605f64c4d8481189f177093 (diff) | |
Merge pull request #3951 from leoetlino/formatting-fix
LightingShaderGen: Fix formatting
Diffstat (limited to 'Source/Core/VideoCommon/LightingShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/LightingShaderGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/LightingShaderGen.cpp b/Source/Core/VideoCommon/LightingShaderGen.cpp index 051d4ddae7..8160364de3 100644 --- a/Source/Core/VideoCommon/LightingShaderGen.cpp +++ b/Source/Core/VideoCommon/LightingShaderGen.cpp @@ -28,7 +28,7 @@ static void GenerateLightShader(ShaderCode& object, const LightingUidData& uid_d LIGHT_DIR_PARAMS(index)); object.Write("cosAttn = " LIGHT_COSATT ".xyz;\n", LIGHT_COSATT_PARAMS(index)); object.Write("distAttn = %s(" LIGHT_DISTATT ".xyz);\n", - (diffusefunc == LIGHTDIF_NONE) ? "" : "normalize", LIGHT_DISTATT_PARAMS(index)); + (diffusefunc == LIGHTDIF_NONE) ? "" : "normalize", LIGHT_DISTATT_PARAMS(index)); object.Write("attn = max(0.0f, dot(cosAttn, float3(1.0, attn, attn*attn))) / dot(distAttn, " "float3(1.0, attn, attn*attn));\n"); break; @@ -71,8 +71,8 @@ static void GenerateLightShader(ShaderCode& object, const LightingUidData& uid_d // materials name is I_MATERIALS in vs and I_PMATERIALS in ps // inColorName is color in vs and colors_ in ps // dest is o.colors_ in vs and colors_ in ps -void GenerateLightingShaderCode(ShaderCode& object, const LightingUidData& uid_data, - int components, const char* inColorName, const char* dest) +void GenerateLightingShaderCode(ShaderCode& object, const LightingUidData& uid_data, int components, + const char* inColorName, const char* dest) { for (unsigned int j = 0; j < xfmem.numChan.numColorChans; j++) { |
