blob: dadf9c2b86cff6685873f0a48bf72d452d37ce7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#version 330 core
#extension GL_ARB_shading_language_420pack : enable
layout(location = 0) in mat3 model;
layout(location = 3) in ivec3 worldPos;
uniform ivec3 viewPoint;
uniform vec3 centre;
out mat3 vmodel;
out ivec3 vworldPos;
void
main()
{
vmodel = model;
vworldPos = worldPos - viewPoint + ivec3(centre);
}
|