How is light to be implemented using ofLight with the programmable renderer?

Hi,
I’ve just tried read that using ofLight with the programmable renderer does not work and was wondering how I could use lighting.

Thanks

J

I think it does work since 0.9.0 - see the part “Shader based lights and materials on OpenGL 3+”

Thanks! But is there a way to check which open frameworks version I have as I think I have 0.8.something and if 0.9.0 is the new version I would have to change a lot of the code I have been working on, which I don’t mind if it is necessary.
Also, does this mean ofLight cannot be used on previous open frameworks versions using the programmable renderer?

Thanks

J

cout << ofGetVersionInfo() << endl; will tell you the version info

I think you have to use your own shaders for pre-0.9.0 - not sure though

Thanks again :slight_smile: