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

Aaburamadan patch 1 #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aaburamadan
Copy link

i apologize for the upload delay, i did not understand how to make a pull request, and made it on my own forked branch by mistake. (before the deadline). i hope this is not an issue.
Best,
Adnan

Copy link
Collaborator

@ereator ereator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra files are submitted. That makes checking and grading extremely difficult. Please avoid submitting extra files in the future.

@@ -0,0 +1,31 @@
#pragma once
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be submitted

*/
// --- PUT YOUR CODE HERE ---
Vec3f N = ray.hit->getNormal(ray);//shading normal
Vec3f R = (2 * (ray.dir.dot(N)) * N) - ray.dir; //Reflected dir R
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem with sign. It should be ray.dir - 2 * N.dot(ray.dir) *N

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

Successfully merging this pull request may close these issues.

2 participants