blob: 26e2bcf24acf1b336acac76c6f81df570f7521ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//Copyright 2010 JogAmp Community. All rights reserved.
//
// 2-pass shader w/o weight
//
#if __VERSION__ >= 130
#define varying in
out vec4 mgl_FragColor;
#define texture2D texture
#else
#define mgl_FragColor gl_FragColor
#endif
#include uniforms.glsl
#include varyings.glsl
#define GetSample(texUnit, texCoord, psize, cx, cy, offX, offY) texture2D(texUnit, texCoord + psize * vec2(cx+offX, cy+offY))
|