mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
ShaderGen: Rename "eye" to "layer".
Keeping things generic.
This commit is contained in:
parent
d583720a59
commit
63b37e29d1
2 changed files with 7 additions and 7 deletions
|
@ -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[] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue