summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/commonLocationData.glsl
blob: 4939b9ba5c30b76cc388a9b6231c4b14fdd4e73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef COMMON_LOCATION_DATA_INCLUDED
#define COMMON_LOCATION_DATA_INCLUDED

struct CommonLocationData {
	ivec4 position;
	vec4 rotation;
	mat3x4 rotationMatrix;
};

layout(binding = 0, std430) restrict readonly buffer commonLocationData
{
	CommonLocationData locations[];
};

layout(binding = 1, std430) restrict readonly buffer commonLocationDataIndex
{
	uint cldIndex[];
};

#endif