We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void dda_unit(vec3 cen, vec3 invdir, out float tmax) { float t1, t2; tmax = 1e9f; for (int i = 0; i < 3; ++i) { t1 = - cen[i] * invdir[i]; t2 = t1 + invdir[i]; tmax = min(tmax, max(t1, t2)); } }
I may have trouble understanding it...could you help me..many thanks!.. It looks like the t1 is trying to go back to the origin...
The text was updated successfully, but these errors were encountered:
I had the same question. Do you understand?
Sorry, something went wrong.
No branches or pull requests
I may have trouble understanding it...could you help me..many thanks!..
It looks like the t1 is trying to go back to the origin...
The text was updated successfully, but these errors were encountered: