ShaderGenerator works opposite of expected

classic Classic list List threaded Threaded
1 message Options
ceranco ceranco
Reply | Threaded
Open this post in threaded view
|

ShaderGenerator works opposite of expected

Hello,

I have recently encountered a confusing behavior with
Registry::shaderGenerator().run(geode)

I'm running on Windows 7 and I have osgEarth 2.9 compiled against OpenSceneGraph 3.6.0

My scene graph looks like this:

Root -> SkyNode -> MapNode -> GeoTransform -> Geode -> Sphere Geometry.


I wanted to have the SkyNode light affect the geometry, so I ran the ShaderGenerator on the Geode as instructed in the FAQ. When that didn't work, I tried without running the ShaderGenerator and the light did affect the Geode.

Does anybody have an idea why running the ShaderGenerator seems to do the opposite of what it should?
Eran Cohen