Files
loop/shader/Old/wall.vert
T
2023-03-07 22:53:32 +00:00

19 lines
335 B
GLSL

#version 450 core
layout (location = 0) in vec3 pos;
layout (location = 1) in vec4 params;
out vec4 vParams;
uniform mat4 worldMat;
mat4 perspective =
mat4 (1,0,0,0
,0,1,0,0
,0,0,1,1
,0,0,0,1
) ;
void main()
{
gl_Position = perspective * worldMat * vec4(pos.xyz, 1);
vParams = params;
}