blob: 2179160c95a33437d825767b0a481e433862038c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
precision mediump float;
struct light_u
{
vec4 color_and_intensity;
vec2 center;
uint mode;
};
#define TILE_MAX_DIM 16
#define TILE_SIZE_X 64
#define TILE_SIZE_Y 64
#define CHUNK_SIZE_X (TILE_SIZE_X * TILE_MAX_DIM)
#define CHUNK_SIZE_Y (TILE_SIZE_Y * TILE_MAX_DIM)
layout (location = 0) uniform vec4 color_intensity;
layout (location = 1) uniform vec2 px;
|