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:
parent
520bccf8d8
commit
b1d2b84f7d
|
@ -2085,6 +2085,8 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) {
|
|||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -292,6 +292,7 @@ void main() {
|
|||
col1 = outputs.col1;
|
||||
col2 = outputs.col2;
|
||||
gl_Position = outputs.pos;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ void main() {
|
|||
outputs = vert_main(inputs);
|
||||
v_color = outputs.v_color;
|
||||
gl_Position = outputs.Position;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ void main() {
|
|||
color = outputs.color;
|
||||
quad_pos = outputs.quad_pos;
|
||||
gl_Position = outputs.position;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -169,6 +169,7 @@ void main() {
|
|||
tangent = outputs.tangent;
|
||||
bitangent = outputs.bitangent;
|
||||
gl_Position = outputs.position;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ void main() {
|
|||
tint_symbol_3 outputs;
|
||||
outputs = tint_symbol(inputs);
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ void main() {
|
|||
outputs = vs_main(inputs);
|
||||
texcoords = outputs.texcoords;
|
||||
gl_Position = outputs.position;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,6 +90,7 @@ void main() {
|
|||
outputs = tint_symbol_1(inputs);
|
||||
vUV_1 = outputs.vUV_1;
|
||||
gl_Position = outputs.tint_symbol;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ void main() {
|
|||
tint_symbol_1 outputs;
|
||||
outputs = tint_symbol();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ void main() {
|
|||
tint_symbol_4 outputs;
|
||||
outputs = tint_symbol(inputs);
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ void main() {
|
|||
outputs = tint_symbol(inputs);
|
||||
color = outputs.color;
|
||||
gl_Position = outputs.Position;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -180,6 +180,7 @@ void main() {
|
|||
v_Color = outputs.v_Color;
|
||||
v_TexCoord = outputs.v_TexCoord;
|
||||
gl_Position = outputs.member;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ void main() {
|
|||
tint_symbol outputs;
|
||||
outputs = vertex_main();
|
||||
gl_Position = outputs.value;
|
||||
gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
|
||||
gl_Position.y = -gl_Position.y;
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue