Is it possible to change the fragment’s z-value in a fragment program? If possible, how can it be achieved?
Thanks!!!
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