Code: Select all
//Passed as float4(minDepth, maxDepth, depthRange, 1 / depthRange)
vertexParams->setNamedAutoConstant("depthRange", Ogre::GpuProgramParameters::ACT_SCENE_DEPTH_RANGE);
This would also imply that the minDepth is not equal to the nearClipDistance and similarly the maxDepth is not equal to the farClipDistance.
Can someone please clarify what the depthRange really is and also how I can get the values in code and not just through the Ogre::GpuProgramParameters enumeration.