Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

computeTileAreaAndDistance #2266

Answered by nzjony
blueRaining asked this question in Q&A
Aug 4, 2021 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

It has been a while since I looked at this.

The objectSize value is in NDC space, so the area is a percentage of a cube 2 x 2, i.e. 4 units square, because the NDC space goes from -1,-1 to 1,1. (95% sure).

The distance is in NDC space, at least because it is clamped between -1 and 1 and divided by w.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by nzjony
Comment options

You must be logged in to vote
6 replies
@blueRaining
Comment options

@nzjony
Comment options

@blueRaining
Comment options

@nzjony
Comment options

@blueRaining
Comment options

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