1#version 150 2 3uniform float size_value; 4uniform float time; 5uniform mat4 worldViewProjMatrix; 6 7in vec4 vertex; 8in vec3 normal; 9 10void main(void) 11{ 12 vec3 Pos = vertex.xyz + (size_value * (1.0 + (sin(time * 5.0) + 1.0) / 15.0 ) * normal); 13 14 gl_Position = worldViewProjMatrix * vec4(Pos,1.0); 15} 16