Skip to content

Normalize ray_vector? #70

Description

@ruoshiliu

Hi, I see that in your code, you get ray_vector by subtracting the camera origin (camera_world) from the pixel (p_world) ray_vector = camera_world - p_world. I'm wondering if this ray_vector can have a depth other than 1? For example, can you sample a point inside the unit cube and set ray_vector = p_inside_cube - camera_world, will this ray_vector still be a valid input into the ray marching function? Thanks!

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