Information for consideration. You do not allow the programmer to modify the vertex shader, but the video card uses vertex and pixel processors separately (for video cards without unified shader processors). That means you can do some calculations on the vertex processor instead pixel processor to maximize performance of pixel effect.
In my shaders I use vertex processor too, and performance of effects was increased. For huge algorithms difference is noticeable (at least 10%).
I hope LOVE will have support of "raw" GLSL shaders.
Share a Shader!
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Share a Shader!
I have been pushing for a vertex shader API as well, but bartbes says they'll wait and see if regular pixeleffects are popular or something.
Re: Share a Shader!
For example, lighting. You use in game bumpmapping, parallax and so on. Some vector computation may be done in vertex shader: light and mouse coordinates, normals.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Share a Shader!
In 2d games with bump mapping you don't need vertex normals and you can use a regular rotation matrix instead of a TBN matrix, so you won't gain as much benefit from a vertex shader as you would in a 3D game, but it still helps a lot.RPG wrote:For example, lighting. You use in game bumpmapping, parallax and so on. Some vector computation may be done in vertex shader: light and mouse coordinates, normals.
Re: Share a Shader!
I ported another sample from the glsl site like vrld did.
If someone can share a shader wich transforms textures/images i would appreciate this very much!
here is is.
If someone can share a shader wich transforms textures/images i would appreciate this very much!
here is is.
- Attachments
-
- tunnel.love
- (1.15 KiB) Downloaded 922 times
Re: Share a Shader!
How could one acquire a copy of whatever you guys are using to run these things? Last i checked 0.8.0 isn't out. lol
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Share a Shader!
https://love2d.org/builds/veethree wrote:How could one acquire a copy of whatever you guys are using to run these things? Last i checked 0.8.0 isn't out. lol
Kurosuke needs beta testers
Re: Share a Shader!
Transforms in what way?SiENcE wrote:transforms textures/images
For classic image processing effects, see these posts:
Images Effects -shader.love
ringfire shader.love
blurshader.love
bloom
HSL <-> RGB
For distortion, see these:
turn a square image into a rotating sphere (5th code box)
caleidoscope.love
Re: Share a Shader!
3D projectionvrld wrote:Transforms in what way?SiENcE wrote:transforms textures/images
Re: Share a Shader!
Dang, it says my graphics card does not support pixel effect.
Who is online
Users browsing this forum: Google [Bot] and 8 guests