EgtGraphics 3.1e2 :

- piccole migliorie per rendere più stabile rotazione camera.
This commit is contained in:
Dario Sassi
2026-05-12 18:08:07 +02:00
parent 0405079553
commit 8eff351f17
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -982,7 +982,7 @@ Scene::GetPixelZ( const Point3d& ptWin, double& dWinZ)
float dZ ;
bool bOk = true ;
glReadPixels( int( ptWin.x), int( Viewport[3] - ptWin.y), 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &dZ) ;
if ( glGetError() == GL_NO_ERROR && dZ > 0.001f && dZ < 0.999f)
if ( glGetError() == GL_NO_ERROR && dZ > 0.1f && dZ < 0.9f)
dWinZ = dZ ;
else {
bOk = false ;