www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: MichaelJPCT on August 14, 2016, 01:07:17 pm

Title: is there Z-offset options?
Post by: MichaelJPCT on August 14, 2016, 01:07:17 pm
i couldn't find any.
Title: Re: is there Z-offset options?
Post by: EgonOlsen on August 14, 2016, 01:25:32 pm
Depends on what you mean with that...?
Title: Re: is there Z-offset options?
Post by: MichaelJPCT on August 14, 2016, 01:56:31 pm
i want Z-offset (or depth-offset) to help resolve 2 (nearly) co-planar polygons, one should be seen , the other should be hidden. although moving one of them a little closer can have effect, but with Z-offset the result can be better in some cases.
Title: Re: is there Z-offset options?
Post by: EgonOlsen on August 14, 2016, 02:46:21 pm
Then no. You have to do that in a shader. However, I think that fiddling around with depth to get something to work indicates that you are on the wrong track...