I have problems with drawing in OpenGL, and I need to pinpoint which values ββfit in the depth buffer. Can someone tell me how to get these values? thanks Chris
Use glReadPixels with format = GL_DEPTH_COMPONENT, for example:
float depth; glReadPixels(0, 0, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &depth);
Get the pixel depth (0, 0).
Source: https://habr.com/ru/post/1332901/More articles:WPF launches datagrid to hide / show columns according to bindings - wpfOpen XML SDK - Adding a Macro Programmatically to a Word 2007 Document - vsto"Lost connection to MySQL server" when trying to connect to a remote MySQL server - phpReturn more than one result set using T-SQL - c #Overwriting data in a C ++ file using fstream - c ++Default TextBlock Text Style for Text Above Color - c #Need help in SQL and Sequel involving an internal join and where / filter - ruby ββ| fooobar.comHibernate SQLQuery bypasses hibernate session cache - hibernateVolume keys - androidIs using Javascript eval () 100% safe? - javascriptAll Articles