Skip to content

Commit

Permalink
fix images in gui
Browse files Browse the repository at this point in the history
  • Loading branch information
malytomas committed Aug 24, 2022
1 parent 3d65210 commit b9a3651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/cage/shader/gui/image.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void main()
{
gl_Position.z = 0.0;
gl_Position.w = 1.0;
gl_Position.xy = pos.xy + (pos.zw - pos.xy) * inUv;
gl_Position.xy = pos.xy + (pos.zw - pos.xy) * inPosition.xy;
varUv = uv.xy + (uv.zw - uv.xy) * inUv;
}

Expand All @@ -24,7 +24,7 @@ out vec4 outColor;

$if inputSpec ^ 0 = A

layout(location = 2) uniform vec4 aniTexFrames;
layout(location = 2) uniform vec4 aniTexFrames;
layout(binding = 0) uniform sampler2DArray texImg;

void main()
Expand Down

0 comments on commit b9a3651

Please sign in to comment.