Shader 怎么声明数组

  • fs: error EFX2203: uniform vec2 pointList[100]: array UBO members need to be 16 bytes aligned to avoid implicit padding

声明vec2数组引擎报错

不要沉呀 大神救救我:joy:

解决了吗?

直接value: [0.0, 0.0, 0.0, 0.0],这样好像是引擎会自动给解析成数组的,不用在editor里面特意申明一下

确实这样的哈