blob: a2d562517ce27f0fa961cdf1c150e356f9dca1a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
* SPDX-License-Identifier: MIT
*/
#ifdef SH_PROG
SH_PROG(main)
#undef SH_PROG
#endif // SH_PROG
#ifdef SH_VER
SH_VER("150 core")
#undef SH_VER
#endif // SH_VER
#ifdef SH_IN
SH_IN(vec3, pos)
SH_IN(vec3, norm)
SH_IN(vec2, uv)
#undef SH_IN
#endif // SH_IN
#ifdef SH_UNI
SH_UNI(mat4, model)
SH_UNI(mat4, view)
SH_UNI(mat4, proj)
SH_UNI(vec3, light)
#undef SH_UNI
#endif // SH_UNI
#ifdef SH_TEX
SH_TEX(2D, diff)
SH_TEX(2D, spec)
#undef SH_TEX
#endif // SH_TEX
#ifdef SH_OUT
SH_OUT(vec4, color)
#undef SH_OUT
#endif // SH_OUT
|