SFML community forums
Help => Graphics => Topic started 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?
-
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.
-
Isn't per-sprite-pixel-shader a planned feature?
-
Yes it is.