By depth shift I assume you mean depth offset. It’s provided by an OpenGL extension called EXT_polygon_offset, which you can look up.

For depth clipping, just set the near plane and far plane to the appropriate distances.

Please log in or register to post a reply.

By depth shift I assume you mean depth offset. It’s provided by an OpenGL extension called EXT_polygon_offset, which you can look up.

For depth clipping, just set the near plane and far plane to the appropriate distances.

In fact, I know the functions about depth buffer in OpenGL as follows:

glDepthMask

glEnable(GL_DEPTH_TEST);

glDisable(GL_DEPTH_TEST);

glDepthFunc(GL_GREATER);

glDepthRange

I don’t know how to implement the above operation with these functions.What other functions exists?How to code?

Reedbeta,thanks for your reply.

I simply want to study which function can implement the depth shift operation?

**already told you what to search
for** in my post earlier in this thread. You can **find the function
yourself** easily.

- Upcoming Multiplatform Game Program...
- Our first game - looking for feedbacks
- Network Emulation Tool
- Trouble with accessing GLSL array
- Fiction
- Game Programming Patterns: Bytecode
- Interactive WebGL Water Demo
- Skeletal Animation Tutorial with GP...
- Unreal Engine 4
- Microsoft xbox one selling poorly

What is the depth shift operation? How to write it in OpenGL?

what is the depth chipping and clipping test?How to write it in OpenGL?