Here comes the noob question...
How do I access, in the fragment shader, textures defined in the cxx code (as in simgear).
Context: I have defined a EffectGeode object in simgear having a texture, it gets rendered as it should provided the vertex and fragment shaders are empty. As soon as I fill them with anything, bang, the texture is gone. I know that I should explicitly set fragColor using the texture's texel in the fragment shader to get any texture output, but my problem is that I have no idea how to get that texture...
All examples on the wiki are using .eff files that explicit set texture indices and their source images, but I did not find examples using a Texture defined in the cxx code!
Thanks!