2016-06-30 15:54:35 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
2017-01-13 23:00:38 +00:00
|
|
|
// Point rendering shader
|
2016-06-30 15:54:35 +00:00
|
|
|
//
|
|
|
|
// Copyright 2016 Aleksey Egorov
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
const float feather = 0.5;
|
|
|
|
|
|
|
|
uniform vec4 color;
|
|
|
|
uniform float pixel;
|
|
|
|
uniform float width;
|
|
|
|
|
|
|
|
varying vec2 fragLoc;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
// Rectangular points
|
|
|
|
gl_FragColor = color;
|
|
|
|
}
|