Skip to content

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

Description

@dandingol03

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions