Hi Mary-Ann,

Could you please post this type of question to the General section of
the forum, the Submission section is just for code submission for
contributors to the OSG itself.

Thanks,
Robert.

On 24 October 2016 at 15:09, Mary-Ann Zorra <rebeba...@gmail.com> wrote:
> Hi everyone,
>
> I am trying to write a functional compute shader, but the uniforms dont't 
> want to work.
> I have a compute and a usual shader program currently. The compute shader has 
> to write a texture, which can be read by the usual shader. This part works 
> fine. But I would like to pass some (custom) uniforms (lights, amount of the 
> light sources, projection/view matrix etc.). I use the same method by the two 
> shaders, , but the data seems to arrive only by the usual shader program.
> I thought something could  be wrong with the compute shader, but the texture 
> data is there, so the communication is working. Should I pass the uniforms in 
> an other way, when I have to send data to a compute shader? I can't figure it 
> out, where is the mistake...
>
> Thanks a lot :)
> Mary-Ann
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69141#69141
>
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
osg-submissions@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to