Using multiple rendering glsl program in OsgEarth

classic Classic list List threaded Threaded
2 messages Options
Yami Yami
Reply | Threaded
Open this post in threaded view
|

Using multiple rendering glsl program in OsgEarth

Hi!

I have a little problem.

I want to create a separate glslProgram, which contains vertex shader, fragment shader, etc., it draws its own vertex set, and finally superimposes with the effect of osgearth. I execute it in a separate opengl environment, which can realize the superposition of multiple glsl programs, However in osgearth, I found that the rendering of the glslprogram I created has no effect. Will osgearth clear the results of other glsl programs? Is there something I am missing?

Thanks for advance! Any kind of advise is appreciated.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Using multiple rendering glsl program in OsgEarth

Yami,
In osgEarth you need to use the VirtualProgram system. There are several examples in the test application osgearth_shadercomp.cpp.

Please note: this forum is closed for new posts. Please use Discussions on GitHub in the future! Thanks.
Glenn Waldron / Pelican Mapping