[osg-users] blending with shader

David Heitbrink david-heitbrink at uiowa.edu
Thu Nov 10 06:28:45 PST 2016


Can you post your shader code? For testing you might try just rendering your texture coordinates for the scene texture, and the texture coordinates for your blending texture, they should be different.

If you are still using this:

" vec4 sceneColor = texture2D(sceneTexture, texCoord);\n"
" vec4 blendingColor = texture2D(blendTexture, texCoord);\n" 

Using the screen space coordinate for your sceneColor, is basically going to have the affect of undoing the warping. You need a texture coordinate from your warping geometry.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69310#69310








More information about the osg-users mailing list