Hello, I developped a texture projective mapping (TPM) using vertex and fragment shader and what I would like to do now is to get the information whether an object has been lit or not by the TPM.
I was thinking of setting a uniform value to 0 in osg through the setUniform function and change it to 1 in the pixel shader if any of the pixel has been lit by the tpm shader. Setting the value to 0 is not complicate but I can't retrieve the value of the uniform modified by my shader. Is it possible ? Or is what I'm doing completely stupid ? Thanks for your help. Wallysx ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41572#41572 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

