23 lines
698 B
GLSL
23 lines
698 B
GLSL
// pathfinder/shaders/gles2/xcaa-multi-resolve.vs.glsl
|
|
//
|
|
// Copyright (c) 2017 The Pathfinder Project Developers.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
precision highp float;
|
|
|
|
attribute vec2 aPosition;
|
|
attribute vec2 aTexCoord;
|
|
|
|
varying vec2 vTexCoord;
|
|
|
|
void main() {
|
|
float depth = convertPathIndexToViewportDepthValue(0);
|
|
gl_Position = vec4(mix(vec2(-1.0), vec2(1.0), aPosition), depth, 1.0);
|
|
vTexCoord = aTexCoord;
|
|
}
|