twgl.js

WebGL/OpenGL text labeling animated instanced shapes

风流意气都作罢 提交于 2021-01-07 02:55:06
问题 I'm rendering a variable number of circles in the plane with variable size, color, and position using instancing. I'm hoping to reach on the order of 10k-100k circles/labels. in float instanceSize; in vec3 instanceColor; in vec2 instanceCenter; The buffer backing the instanceCenter attribute changes every frame, animating the circles, but the rest is mostly static. I have a quad per circle and I'm creating the circle in the fragment shader. Now I'm looking into labeling the shapes with labels

WebGL/OpenGL text labeling animated instanced shapes

廉价感情. 提交于 2021-01-07 02:54:28
问题 I'm rendering a variable number of circles in the plane with variable size, color, and position using instancing. I'm hoping to reach on the order of 10k-100k circles/labels. in float instanceSize; in vec3 instanceColor; in vec2 instanceCenter; The buffer backing the instanceCenter attribute changes every frame, animating the circles, but the rest is mostly static. I have a quad per circle and I'm creating the circle in the fragment shader. Now I'm looking into labeling the shapes with labels