9int glup_mod(in
int x, in
int y) {
13int glup_mod(in
int x, in
int y) {
25#ifdef GLUP_VERTEX_SHADER
26#define glup_in attribute
27#define glup_out varying
28#elif defined GLUP_FRAGMENT_SHADER
29#define glup_in varying
32#define glup_id highp float
37#define glup_id highp int
41vec4 glup_texture(in sampler2D samp, in vec2 uv) {
42 return texture2D(samp, uv);
45vec4 glup_texture(in sampler2D samp, in vec2 uv) {
46 return texture(samp, uv);
50#ifdef GLUP_FRAGMENT_SHADER
52#define glup_FragColor gl_FragColor
53#ifdef GL_EXT_frag_depth
54#define glup_FragDepth gl_FragDepthEXT
59out
vec4 glup_FragColor;
60#define glup_FragDepth gl_FragDepth
vecng< 4, Numeric::float64 > vec4
Represents points and vectors in 4d.