Skip to content
New issue

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

why lRayEnd_NDC's z setted to 0 in misc05_picking_custom example #132

Open
dandingol03 opened this issue Sep 18, 2023 · 0 comments
Open

Comments

@dandingol03
Copy link

HI, thanks for the tutorial about mouse picking.

glm::vec4 lRayEnd_NDC(
		((float)mouseX/(float)screenWidth  - 0.5f) * 2.0f,
		((float)mouseY/(float)screenHeight - 0.5f) * 2.0f,
		0.0,
		1.0f
	);

why lRayEnd_NDC's z coordinate is setted to 0? For my opinion, the far plane's z coordinate in ndc is 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant