blob: 3ecbe86ec8d0284116c6da9d9fff2fab99decf67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef CUSTOM_MATERIAL_GLSLLIB
#define CUSTOM_MATERIAL_GLSLLIB 1
#define SNAPPER_SAMPLER2D(samplerName, samplerNiceName, texFilter, texWrap, showUI )\
uniform sampler2D samplerName;
// some useful defines
#ifndef PI
#define PI 3.14159265358979f
#define PI_HALF ( 0.5f * PI )
#define PI_TWO ( 2.0f * PI )
#define ONE_OVER_PI ( 1.0f / PI )
#define TWO_OVER_PI ( 2.0f / PI )
#define PI_SQUARE ( PI * PI )
#endif
#endif // CUSTOM_MATERIAL_GLSLLIB
|