Hi Clement,

could you explain a bit more what you expect and what you are getting? Do you want to blend between the different textures (AFAIK you cannot do this unless you do another pass)? Are you expecting max, but getting average?

jp

clement vidal wrote:

Hi,

I have a problem with BlendEquations and shaders. That is the situation:

I attach several textures to my camera using COLOR_BUFFER0,
COLOR_BUFFER1, ...
I use a shader to make the rendering into this textures.

There is some values in this textures and i would like to use a max blending between the value wich are already in and the values i affect in the shader.

When I define an osg::BlendEquation with RGBA_MAX blending, i have the blend result between the value in the frame buffer (background color or ClearColor ) and the value in the shader.

What I do wrong? Somebody have a idea?

Thanks for helping


------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to