As I’m learning shaders and trying to grasp the concepts and power of them perhaps this question comes out of lack of understanding how they and OF truly works. What I’m trying to achieve is having a custom ofShader working with ofLight together in 0.9.
I’m able to get the light working with ofMaterial, but now I’m trying to do some texture mapping in a shader on a sphere with additional lights and that’s proving to be more tricky that I’ve anticipated.
Before starting I assumed this would be a simple enough task (silly me!) I’ve gone through the nightly build examples but can’t seem to find anything that’s set up in such a way. Perhaps it’s not a good way to do it?
What I’m making is our lovely Earth, of course, and as you can see, it needs some sun-rays badly