Skip to content

How to change far clipping plane depth. #2875

Answered by kpreid
IsaccBarker asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure I've understood your question, but normally, controlling the Z/depth clipping range is done by using via the projection matrix (or simpler arithmetic) in your vertex shader. Most graphics libraries that construct a projection matrix for you, will let you select the “near” and “far” distance to be clipped; these are the znear and zfar variables seen in the learn-wgpu tutorial).

If that doesn't help, can you clarify what you're looking for by providing the code you've got so far and maybe drawings of what difference you want?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IsaccBarker
Comment options

Answer selected by IsaccBarker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants