2017-11-27 23:10:19 +00:00
|
|
|
#version 410
|
|
|
|
#define SCENE_EXTENT 100.0f
|
|
|
|
|
|
|
|
uniform mat4 matrModel;
|
|
|
|
uniform mat4 matrVisu;
|
|
|
|
uniform mat4 matrProj;
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
layout(location=0) in vec4 Pos;
|
2017-12-01 06:04:09 +00:00
|
|
|
layout(location=1) in vec4 Att1;
|
|
|
|
layout(location=2) in vec4 Att2;
|
2017-11-27 23:10:19 +00:00
|
|
|
|
|
|
|
out Attribs {
|
|
|
|
vec4 Pos;
|
|
|
|
vec4 Att1;
|
|
|
|
vec4 Att2;
|
|
|
|
} Out;
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2017-12-11 22:20:40 +00:00
|
|
|
/* The coordinate inversion compensate for Direct3D flipped drawing coordinates */
|
|
|
|
Out.Pos = Pos * vec4(1,-1,1,-1);
|
2017-11-27 23:10:19 +00:00
|
|
|
Out.Att1 = Att1;
|
|
|
|
Out.Att2 = Att2;
|
|
|
|
gl_PointSize = 5;
|
|
|
|
}
|
|
|
|
|