attribute float s_red; attribute float s_blue; attribute float s_green; attribute float s_opacity; varying float red; varying float blue; varying float green; varying float opacity; void main() { red = s_red; blue = s_blue; green = s_green; opacity = s_opacity; gl_Position = projectionMatrix * modelViewMatrix * vec4(position,1.0); gl_PointSize = 2.0; }
varying float red; varying float blue; varying float green; varying float opacity; void main() { gl_FragColor = vec4(red, // R blue, // G green, // B opacity); // A }

Loading …

SPACE TIME