mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-26 17:31:31 +11:00
newpixie: Don't flip geometry coordinates, flip texcoords.
This commit is contained in:
parent
385e1b0019
commit
4d97229d22
|
@ -81,9 +81,8 @@ layout(location = 0) out vec2 vTexCoord;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
vec4 modpos = vec4(Position.x, 1.-Position.y, Position.z, Position.w);
|
gl_Position = global.MVP * Position;
|
||||||
gl_Position = global.MVP * modpos;
|
vTexCoord = vec2(TexCoord.x, 1.0 - TexCoord.y);
|
||||||
vTexCoord = TexCoord;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma stage fragment
|
#pragma stage fragment
|
||||||
|
|
Loading…
Reference in a new issue