Shader array properties
Cocos
MARCH 28, 2024
We are currently using this shader to create dynamic light effect on 2d sprites, so we are updating it very often. First of all declare your array on the shader. Unfortunately with UBO we may create only vec4 array, so we may have to “pack” the data. Also every sprite has it’s own material.
Let's personalize your content