SFML community forums

Help => Graphics => Topic started by: eleinvisible on April 18, 2008, 12:07:15 am

Title: Lighting?
Post by: eleinvisible on April 18, 2008, 12:07:15 am
I was just "checking under the hood" and from what I see SFML is OpenGL based for graphics. So I was wondering if their is or will be support for lighting?
Title: Lighting?
Post by: Laurent on April 18, 2008, 03:10:41 am
Lighting is mostly a 3D thing, to provide real 2D lighting I'd have to use pixel shaders which is not an option in this context :)

However, you can easily fake some lighting by using colored shapes or sprites with additive or multiplicative blending.

You could as well use pixel shaders through post-fx for more complex lighting.
Title: Lighting?
Post by: Kingdom of Fish on April 18, 2008, 09:55:20 am
Isn't per-sprite-pixel-shader a planned feature?
Title: Lighting?
Post by: Laurent on April 18, 2008, 10:11:37 am
Yes it is.