2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

Remove FLIPFROMGL from shaders, use F1 key for uncapping frame-rate

This commit is contained in:
Jack Andersen
2018-10-15 21:28:41 -10:00
parent 3f4aeffb17
commit 2eb4573e53
8 changed files with 13 additions and 16 deletions

View File

@@ -298,7 +298,6 @@ void main()
vtf.uvTexr = uvsInTexrTind[gl_VertexID].xy;
vtf.uvTind = uvsInTexrTind[gl_VertexID].zw;
gl_Position = mvp * pos;
gl_Position = FLIPFROMGL(gl_Position);
}
#fragment glsl

View File

@@ -27,7 +27,6 @@ void main()
vtf.uv = uvIn;
vtf.color = mulColor;
gl_Position = mv * vec4(posIn, 1.0);
gl_Position = FLIPFROMGL(gl_Position);
}
#fragment glsl

View File

@@ -30,7 +30,6 @@ void main()
vtf.color = color;
vtf.uv = uvIn.xy;
gl_Position = mtx * vec4(posIn.xyz, 1.0);
gl_Position = FLIPFROMGL(gl_Position);
}
#fragment glsl

View File

@@ -204,13 +204,14 @@ fragment float4 fmain(VertToFrag vtf [[ stage_in ]],
#dstfac one
#shader CRandomStaticFilterMult : CRandomStaticFilterAlpha
#srcfac srccolor
#dstfac dstcolor
#srcfac zero
#dstfac srccolor
#shader CRandomStaticFilterCookieCutter : CRandomStaticFilterAlpha
#srcfac srccolor
#dstfac dstcolor
#srcfac zero
#dstfac srccolor
#depthwrite true
#colorwrite false
#depthtest lequal
#fragment glsl

View File

@@ -33,7 +33,6 @@ void main()
vtf.uv = uvIn.xy;
vtf.lod = lod;
gl_Position = mtx * vec4(posIn.xyz, 1.0);
gl_Position = FLIPFROMGL(gl_Position);
}
#fragment glsl