00.04 stR =
050 stD =
02 X size =
030 Point size =
|
const VSsPart = `#version 300 es uniform float t; uniform vec4 par; // R, D, S, point size out vec3 color; void main(void) { float r = par.x*float(gl_VertexID % 300), d = par.y*float(gl_VertexID / 300); float P = pow(sin(r*d + t), 8.); color = vec3(P, 0., 1. - P); float x = r*cos(t + r + d)*d*.0012; gl_Position = vec4(x*(1. + x*x)*par.z, sin(t - r + d)*d*.003, 0., 1.); gl_PointSize = par.w*P*d*.003; }`;