EgtGraphics 3.1e2 :
- piccole migliorie per rendere più stabile rotazione camera.
This commit is contained in:
+1
-1
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user