[osg-users] Image from shader

Lucas Amparo lucas.barbosa at fieb.org.br
Fri Oct 4 04:40:30 PDT 2019

AnyOldName3 wrote:
> Hi,
> I'm pretty sure you're not using your shaders at all. You're not setting gl_Position in the vertex shader, so it's not going to compile, and OSG will fall back to either its basic shader or fixed-function mode depending on how you've set it up. You should be seeing errors printed to the console when you run your application.
> Cheers,
> Chris

Hi, thanks for your answer.
The shader works for my purpose.
Before, just a depthmap from simulation.

The console don't show any error, just deprecated warnings.

Do you believe if I set gl_Position, the colors could be solved?

Read this topic online here:

More information about the osg-users mailing list