Search found 3 matches

by DragonChan
Thu Mar 19, 2015 3:13 pm
Forum: Support and Development
Topic: Array of images to shader
Replies: 4
Views: 1504

Re: Array of images to shader

In Shader:send in wiki it says you can send multiple
I didn't access out of bounds, it will crash
by DragonChan
Thu Mar 19, 2015 1:53 pm
Forum: Support and Development
Topic: Array of images to shader
Replies: 4
Views: 1504

Re: Array of images to shader

by DragonChan
Tue Mar 17, 2015 12:06 pm
Forum: Support and Development
Topic: Array of images to shader
Replies: 4
Views: 1504

Array of images to shader

Capture.PNG local pixelcode = [[ extern Image images[2]; vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords ) { vec4 texcolor = Texel(images[0], texture_coords); // same picture set to 1 or 0 return texcolor * color; } ]] mainShader = love.graphics.newShader(pixelcode) ...