diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-10-29 14:57:49 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-11-23 14:26:56 +0100 |
| commit | 63b37e29d1c5ea6ecb2342ef9ba01b165aac602e (patch) | |
| tree | 213cbc8867b0e6ce7d104d1e971d1a69f8711974 /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | d583720a59e51d75c7772d745fb541a5cf00e2b8 (diff) | |
ShaderGen: Rename "eye" to "layer".
Keeping things generic.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index 8e1adaae95..4f0c7ea5e1 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -323,7 +323,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T uid_data->stereo = g_ActiveConfig.bStereo; if (g_ActiveConfig.bStereo) - out.Write("flat in int eye;\n"); + out.Write("flat in int layer;\n"); out.Write("void main()\n{\n"); @@ -926,7 +926,7 @@ static inline void SampleTexture(T& out, const char *texcoords, const char *texs if (ApiType == API_D3D) out.Write("iround(255.0 * Tex%d.Sample(samp%d,%s.xy * " I_TEXDIMS"[%d].xy)).%s;\n", texmap,texmap, texcoords, texmap, texswap); else - out.Write("iround(255.0 * texture(samp%d, float3(%s.xy * " I_TEXDIMS"[%d].xy, %s))).%s;\n", texmap, texcoords, texmap, g_ActiveConfig.bStereo ? "eye" : "0.0", texswap); + out.Write("iround(255.0 * texture(samp%d, float3(%s.xy * " I_TEXDIMS"[%d].xy, %s))).%s;\n", texmap, texcoords, texmap, g_ActiveConfig.bStereo ? "layer" : "0.0", texswap); } static const char *tevAlphaFuncsTable[] = |
