pathfinder/shaders/gles2/direct-interior.fs.glsl

25 lines
750 B
Plaintext
Raw Normal View History

// pathfinder/shaders/gles2/direct-interior.fs.glsl
//
2017-10-03 18:32:03 -04:00
// 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.
//! Renders polygonal portions of a mesh.
//!
//! Typically, you will run this shader before running `direct-curve`.
//! Remember to enable the depth test with a `GREATER` depth function for optimal
//! performance.
precision highp float;
2018-01-04 21:07:14 -05:00
/// The color of this path.
varying vec4 vColor;
void main() {
gl_FragColor = vColor;
}