How to realize the indistinct effect?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
TomChunKit
Prole
Posts: 11
Joined: Fri Aug 15, 2014 8:08 am

How to realize the indistinct effect?

Post by TomChunKit »

I know use shader can realize them,but I don't know how to do.Who can help me?
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: How to realize the indistinct effect?

Post by s-ol »

You mean the iridescent effect?

Look up HSV/HSL color and read the LÖVE shader manual.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: How to realize the indistinct effect?

Post by Nixola »

Maybe he means blurring?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
rmcode
Party member
Posts: 454
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

Re: How to realize the indistinct effect?

Post by rmcode »

You can find a bunch of shaders here. Just keep in mind that some of them are for older versions of love and might need some manual updating. Other than that you can basically take every GLSL tutorial and recreate it in LÖVE. These are the main differences:

Code: Select all

GLSL                Löve shader language
float               number
sampler2D           Image
uniform             extern
texture2D(tex, uv)  Texel(tex, uv)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests