Search found 3 matches
- Fri Aug 08, 2014 1:40 am
- Forum: Support and Development
- Topic: Shader problem: spliting image into rgb.
- Replies: 3
- Views: 2292
Re: Shader problem: spliting image into rgb.
Oh wow thank you. That is indeed what I was looking for! And from what I can understand a canvas was set up. Would I need to set up a canvas every time a new image or an image in the canvas moves? ***EDIT, I've done a bit of work on canvases and I thought trying to set canvases in the draw loop woul...
- Thu Aug 07, 2014 12:47 am
- Forum: Support and Development
- Topic: Shader problem: spliting image into rgb.
- Replies: 3
- Views: 2292
Shader problem: spliting image into rgb.
local default = [[ vec4 effect(vec4 color, Image texture, vec2 texture_coords, vec2 pixel_coords) { vec4 tc = Texel(texture, texture_coords); number shift = 0.1f; vec4 r = Texel(texture, vec2(tc.x + shift, tc.y - shift)); vec4 g = Texel(texture, vec2(tc.x, tc.y + shift)); vec4 b = Texel(texture, ve...
- Thu Aug 07, 2014 12:24 am
- Forum: Support and Development
- Topic: How do I clone a table
- Replies: 3
- Views: 2868
Re: How do I clone a table
a = {1,2,3} b = {} for k, v in ipairs(a) do b[k] = v end Pretty much means instead of b referring to a , b has a table that refers to the same values as a . Which is kind of cloning right? Well this is the best I can think of. You have to note that it'll reference values that are tables so you need...