aboutsummaryrefslogtreecommitdiff
path: root/vendor/gioui.org/shader/gio/material.vert
blob: 22c41a029c9e958db24fc9a03f8b6328b66db570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#version 310 es

// SPDX-License-Identifier: Unlicense OR MIT

#extension GL_GOOGLE_include_directive : enable

precision highp float;

#include "common.h"

layout(push_constant) uniform Block {
	vec2 scale;
	vec2 pos;
} _block;

layout(location = 0) in vec2 pos;
layout(location = 1) in vec2 uv;

layout(location = 0) out vec2 vUV;

void main() {
	vUV = uv;
	vec2 p = vec2(pos*_block.scale + _block.pos);
	gl_Position = vec4(transform3x2(fboTransform, vec3(p, 0)), 1);
}