mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #4599 from stenzek/point-uvs
GeometryShaderGen: Use lower-left origin for point texture coordinates
This commit is contained in:
commit
7a4464c3e0
@ -285,9 +285,9 @@ ShaderCode GenerateGeometryShaderCode(APIType ApiType, const geometry_shader_uid
|
|||||||
for (unsigned int i = 0; i < uid_data->numTexGens; ++i)
|
for (unsigned int i = 0; i < uid_data->numTexGens; ++i)
|
||||||
{
|
{
|
||||||
out.Write("\tif (((" I_TEXOFFSET "[1] >> %d) & 0x1) != 0) {\n", i);
|
out.Write("\tif (((" I_TEXOFFSET "[1] >> %d) & 0x1) != 0) {\n", i);
|
||||||
out.Write("\t\tll.tex%d.xy += float2(0,1) * texOffset;\n", i);
|
out.Write("\t\tul.tex%d.xy += float2(0,1) * texOffset;\n", i);
|
||||||
out.Write("\t\tlr.tex%d.xy += texOffset;\n", i);
|
out.Write("\t\tur.tex%d.xy += texOffset;\n", i);
|
||||||
out.Write("\t\tur.tex%d.xy += float2(1,0) * texOffset;\n", i);
|
out.Write("\t\tlr.tex%d.xy += float2(1,0) * texOffset;\n", i);
|
||||||
out.Write("\t}\n");
|
out.Write("\t}\n");
|
||||||
}
|
}
|
||||||
out.Write("\t}\n");
|
out.Write("\t}\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user