#ifdef GL_ES precision mediump float; #endif uniform float size_value; uniform float time; uniform mat4 worldViewProjMatrix; attribute vec4 vertex; attribute vec3 normal; void main(void) { vec3 Pos = vertex.xyz + (size_value * (1.0 + (sin(time * 5.0) + 1.0) / 15.0 ) * normal); gl_Position = worldViewProjMatrix * vec4(Pos,1.0); }