blob: 831a8abd92fc3a34221dcb45ad0b90d75f09cc2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#version 330
flat in uint pass_data;
out vec4 color;
const float TINT[6] = float[](
// px, nx
0.9, 0.9,
// py, ny
1, 0.7,
// pz, nz
0.8, 0.8
);
void main(void)
{
uint face = pass_data >> 2u;
uint block = pass_data & 3u;
float tint = TINT[face];
color = vec4(tint, tint, tint, 1);
}
|