mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
24 lines
555 B
GLSL
24 lines
555 B
GLSL
#version 310 es
|
|
|
|
precision highp float;
|
|
|
|
struct VertexOutput {
|
|
vec2 uv;
|
|
vec4 position;
|
|
};
|
|
|
|
layout(location = 0) in vec2 _p2vs_location0;
|
|
layout(location = 1) in vec2 _p2vs_location1;
|
|
smooth out vec2 _vs2fs_location0;
|
|
|
|
void main() {
|
|
vec2 pos = _p2vs_location0;
|
|
vec2 uv = _p2vs_location1;
|
|
VertexOutput _tmp_return = VertexOutput(uv, vec4((1.2 * pos), 0.0, 1.0));
|
|
_vs2fs_location0 = _tmp_return.uv;
|
|
gl_Position = _tmp_return.position;
|
|
gl_Position.yz = vec2(-gl_Position.y, gl_Position.z * 2.0 - gl_Position.w);
|
|
return;
|
|
}
|
|
|