GLSL: fix clip space mismatch in gl_Position.

OpenGL clips against [-w, w], while WebGPU uses [0, w]. The fix is to
modify gl_Position.z on output to match GLSL semantics. (This is the
same code used by SPIRV-Cross under the fixup_clipspace option.)

Bug: tint:1401
Change-Id: I1b1511352eee11cd9b095cd809aa8e1263c6cf4c
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78261
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White 2022-01-26 14:45:55 +00:00 committed by Tint LUCI CQ
parent 520bccf8d8
commit b1d2b84f7d
647 changed files with 649 additions and 0 deletions

View File

@ -2085,6 +2085,8 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) {
} }
} }
if (func->PipelineStage() == ast::PipelineStage::kVertex) { if (func->PipelineStage() == ast::PipelineStage::kVertex) {
out << " gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;"
<< std::endl;
out << " gl_Position.y = -gl_Position.y;" << std::endl; out << " gl_Position.y = -gl_Position.y;" << std::endl;
} }

View File

@ -292,6 +292,7 @@ void main() {
col1 = outputs.col1; col1 = outputs.col1;
col2 = outputs.col2; col2 = outputs.col2;
gl_Position = outputs.pos; gl_Position = outputs.pos;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -83,6 +83,7 @@ void main() {
outputs = vert_main(inputs); outputs = vert_main(inputs);
v_color = outputs.v_color; v_color = outputs.v_color;
gl_Position = outputs.Position; gl_Position = outputs.Position;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -101,6 +101,7 @@ void main() {
color = outputs.color; color = outputs.color;
quad_pos = outputs.quad_pos; quad_pos = outputs.quad_pos;
gl_Position = outputs.position; gl_Position = outputs.position;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -169,6 +169,7 @@ void main() {
tangent = outputs.tangent; tangent = outputs.tangent;
bitangent = outputs.bitangent; bitangent = outputs.bitangent;
gl_Position = outputs.position; gl_Position = outputs.position;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -49,6 +49,7 @@ void main() {
tint_symbol_3 outputs; tint_symbol_3 outputs;
outputs = tint_symbol(inputs); outputs = tint_symbol(inputs);
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -58,6 +58,7 @@ void main() {
outputs = vs_main(inputs); outputs = vs_main(inputs);
texcoords = outputs.texcoords; texcoords = outputs.texcoords;
gl_Position = outputs.position; gl_Position = outputs.position;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -90,6 +90,7 @@ void main() {
outputs = tint_symbol_1(inputs); outputs = tint_symbol_1(inputs);
vUV_1 = outputs.vUV_1; vUV_1 = outputs.vUV_1;
gl_Position = outputs.tint_symbol; gl_Position = outputs.tint_symbol;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -21,6 +21,7 @@ void main() {
tint_symbol_1 outputs; tint_symbol_1 outputs;
outputs = tint_symbol(); outputs = tint_symbol();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -46,6 +46,7 @@ void main() {
tint_symbol_4 outputs; tint_symbol_4 outputs;
outputs = tint_symbol(inputs); outputs = tint_symbol(inputs);
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -40,6 +40,7 @@ void main() {
outputs = tint_symbol(inputs); outputs = tint_symbol(inputs);
color = outputs.color; color = outputs.color;
gl_Position = outputs.Position; gl_Position = outputs.Position;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -180,6 +180,7 @@ void main() {
v_Color = outputs.v_Color; v_Color = outputs.v_Color;
v_TexCoord = outputs.v_TexCoord; v_TexCoord = outputs.v_TexCoord;
gl_Position = outputs.member; gl_Position = outputs.member;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -34,6 +34,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -34,6 +34,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -34,6 +34,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -34,6 +34,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -34,6 +34,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -34,6 +34,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -26,6 +26,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -29,6 +29,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -29,6 +29,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -29,6 +29,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -29,6 +29,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -24,6 +24,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

View File

@ -28,6 +28,7 @@ void main() {
tint_symbol outputs; tint_symbol outputs;
outputs = vertex_main(); outputs = vertex_main();
gl_Position = outputs.value; gl_Position = outputs.value;
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
gl_Position.y = -gl_Position.y; gl_Position.y = -gl_Position.y;
} }

Some files were not shown because too many files have changed in this diff Show More