1/* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5#include base 6 7varying vec4 vData; 8 9#ifdef WR_VERTEX_SHADER 10in vec4 aValue; 11in vec2 aPosition; 12 13void main() { 14 vData = aValue; 15 gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0); 16 gl_PointSize = 1.0; 17} 18 19#endif //WR_VERTEX_SHADER 20 21#ifdef WR_FRAGMENT_SHADER 22out vec4 oValue; 23 24void main() { 25 oValue = vData; 26} 27#endif //WR_FRAGMENT_SHADER 28