2017-08-11 21:11:57 -04:00
|
|
|
// 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.
|
2017-08-11 21:11:57 -04:00
|
|
|
|
2017-12-30 20:32:51 -05:00
|
|
|
//! 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.
|
|
|
|
|
2017-08-11 21:11:57 -04:00
|
|
|
precision highp float;
|
|
|
|
|
2018-01-04 21:07:14 -05:00
|
|
|
/// The color of this path.
|
2017-08-11 21:11:57 -04:00
|
|
|
varying vec4 vColor;
|
|
|
|
|
|
|
|
void main() {
|
2017-10-21 01:04:53 -04:00
|
|
|
gl_FragColor = vColor;
|
2017-08-11 21:11:57 -04:00
|
|
|
}
|