Shaders and FBOs
Re: Shaders and FBOs
Aaaand finally the .love
- Attachments
-
particles_shaders.love
- (15.33 KiB) Downloaded 219 times
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Shaders and FBOs
The dev team will have a serious discussion about this... or it might not be serious at all..., in any case, we'll discuss it.
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Shaders and FBOs
Now, how do you get it to work with texels?
In before people cry the love file doesn't work.
In before people cry the love file doesn't work.
Re: Shaders and FBOs
It works if you use the patchTechnoCat wrote:In before people cry the love file doesn't work.
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Shaders and FBOs
I realize this, but I'm still predicting people complaining it doesn't work.vrld wrote:It works if you use the patchTechnoCat wrote:In before people cry the love file doesn't work.
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: Shaders and FBOs
Are you patching the tip or 0.6.2 source?
Re: Shaders and FBOs
I tested only the mercurial repository source, but I think it should work with 0.6.2TechnoCat wrote:Are you patching the tip or 0.6.2 source?
Re: Shaders and FBOs
Awesome.
But we can't include shaders unless there's a good way to convert automatically from GLSL to HLSL. Does anyone know if there's an open source project which does that?
Yes.vrld wrote: Any chance that gets into the next version of LÖVE?
But we can't include shaders unless there's a good way to convert automatically from GLSL to HLSL. Does anyone know if there's an open source project which does that?
Re: Shaders and FBOs
I thought HLSL only matters if you use Direct3D? since we are using OpenGL on all platforms, doesn't that make GLSL our lingua franca?
(Speaking of lingua fracas and shading languages, wasn't there a (proposed?) SL supported by both OGL and DX, for precisely this reason?)
Regardless, considering that the API is decidedly un-lövely, the fact that you aren't likely to find a HLSL converter soon, and fact that creating shaders is probably something most users aren't going to do (for whatever reason), it seems to me that we should simply include a set of common shaders (possibly with parameters applied to template code?). The issue of conversion then is replaced with simply creating counterparts in the two shader languages.
The only question then is what the basic shader set should be, my suggestions would be Blur, Motion Blur, (Anti) Glow, (De)saturation/Color filter, and Contrast.
(Speaking of lingua fracas and shading languages, wasn't there a (proposed?) SL supported by both OGL and DX, for precisely this reason?)
Regardless, considering that the API is decidedly un-lövely, the fact that you aren't likely to find a HLSL converter soon, and fact that creating shaders is probably something most users aren't going to do (for whatever reason), it seems to me that we should simply include a set of common shaders (possibly with parameters applied to template code?). The issue of conversion then is replaced with simply creating counterparts in the two shader languages.
The only question then is what the basic shader set should be, my suggestions would be Blur, Motion Blur, (Anti) Glow, (De)saturation/Color filter, and Contrast.
"We could make a program for doing this for you, but that is for the LÖVE IDE, planned to be released in March 2142." ~mike
Networking with UDP uLove Proposal CCG: Gangrene
Networking with UDP uLove Proposal CCG: Gangrene
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Shaders and FBOs
I was wondering about the why as well, rude answered this, GLSL is going to be our base language, and the HLSL converter is there so we can create love.graphics.direct3d sometime (or never, rude is in the denial about this).
Who is online
Users browsing this forum: Amazon [Bot] and 5 guests