1#version 120 2 3uniform float size_value; 4uniform float time; 5uniform mat4 worldViewProjMatrix; 6 7attribute vec4 vertex; 8attribute 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