mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-23 00:01:31 +11:00
fix stupid error with gb-pass-5
This commit is contained in:
parent
b23944563a
commit
a7952f4ffc
|
@ -28,7 +28,7 @@ void main()
|
||||||
{
|
{
|
||||||
gl_Position = global.MVP * Position;
|
gl_Position = global.MVP * Position;
|
||||||
vec2 scale = (params.OutputSize.xy * params.SourceSize.zw) / params.SCALE;
|
vec2 scale = (params.OutputSize.xy * params.SourceSize.zw) / params.SCALE;
|
||||||
vec2 middle = 0.5;
|
vec2 middle = vec2(0.5, 0.5);
|
||||||
vec2 diff = TexCoord.xy - middle;
|
vec2 diff = TexCoord.xy - middle;
|
||||||
vTexCoord = middle + diff * scale;
|
vTexCoord = middle + diff * scale;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue