PDA

View Full Version : Please help me. I 've some problem with Depth Buffer.



11-02-2001, 08:52 PM
I want to write my own data to depth buffer.
I 've my array Data like this

float arfDepth[800][600] =
{
0.2f,
...
}

I want to write this data to depth buffer. Help me please.
Thank you.

secnuop
11-02-2001, 11:04 PM
Use glDrawpixels with GL_DEPTH_COMPONENT as your format. That ought to do it.

-- sec