当我尝试我的顶点和片段着色器链接到一个程序,WebGL的抛出Varyings with the same name but different type, or statically used varyings in fragment shader are not declared in vertex shader: textureCoordinates 我在我的两个顶点和片段着色器varying
我基本上得到了与在此问的人相同的问题: Dynamically sized arrays in OpenGL ES vertex shader; used for blend shapes/morph targets。 尤其是他最后一个没有回答的问题也困扰我。 所以我也想为我正在处理的每个网格使用任意数量的混合形状。此刻,我正在使用一个固定数字并将这些形状视为顶点属性。这里的优点是我总是可以获得当