[osg-users] Render to Texture without clamping values

Philipp Meyer philipp.meyer at fh-bielefeld.de
Tue Jun 14 00:52:33 PDT 2016


Hi,

I did some more testing and it turns out that I can set a texel to a color with values > 1.0 just fine in the C++ code.
When using image->setColor(osg::Vec4(1,2,3,4),x,y,0) before reading it with getColor, I can get results > 1.0.

Does that mean that the shader itself is clamping the values somehow? Or does it have to do with the internal texture copy from GPU to host memory?

Thank you!

Cheers,
Philipp

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








More information about the osg-users mailing list