Hello.
I want create "canvas" for simple paint app. Since there is no direct access to texture I m trying to use primitive shader. I push table with setConstant, but it works only if floats number is less or equal 256. For vec4 this number is 64 and for matricies 4x4 this number is 16. Array elements in the shader simply init to 0 in this case like they was not pushed from the table at all.
How to remove this restriction?
Comments
Likes: n1cke
It looks like GL specs requires GPU to support at least 128 vec4.
But maybe I misunderstood what you want to do, because I don't see why you couldn't do a paint program with gideros: you can render to texture (rendertarget), create shaders which use multiple input textures (see NormalMapping), so you can do almost anything you want.
Your canvas will be a RenderTarget texture, you can paint on it using the draw() method from lua, and you can display it by attaching it to a Bitmap...
Likes: n1cke