Search found 2 matches
- Mon Apr 17, 2017 2:14 am
- Forum: Support and Development
- Topic: Can I cram all of this into a table?
- Replies: 21
- Views: 12358
Re: Can I cram all of this into a table?
You could change your draw functions to something like: draw = function () logo.width = logo.width or logo.sprite:getWidth(); logo.height = logo.height or logo.sprite:getHeight(); love.graphics.setColor(255, 255, 255, 255) love.graphics.draw(logo.sprite, logo.x, logo.y,0, 1, 1, logo.width/2, logo.he...
- Mon Apr 17, 2017 2:04 am
- Forum: Support and Development
- Topic: Share a Shader!
- Replies: 328
- Views: 622758
Re: Share a Shader!
Just got into writing some shaders, and I'm trying to dry a "overlay" texture on an existing image. [[ extern Image player; vec4 effect( vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords ) { vec4 texcolor = Texel(texture, texture_coords); vec4 t2 = Texel( player, texture_c...