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.
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.
Use glDrawpixels with GL_DEPTH_COMPONENT as your format. That ought to do it.
– sec