Modifying fragment's depth in a fragment program

Is it possible to change the fragment’s z-value in a fragment program? If possible, how can it be achieved?

Thanks!!!

It is. Just assign to it. Most fragment program tutorials should describe this.

it’s probably a good idea to ask this question in the shader language forum too :slight_smile: