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

Submission: xinyue Zhu #11

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

Conversation

Zhuxinyue909
Copy link

No description provided.

Zhuxinyue909 and others added 11 commits September 28, 2015 21:06
…l *dev_m, int iter, int traced, int currentd)







 enter the commit message for your changes. Lines starting
		float theta = glm::dot(ray.direction, normal);
		float Rtheta = R_coeff(theta,m.indexOfRefraction);
		thrust::uniform_real_distribution <float> u01(0, 1);
		glm::vec3 refract_ray,reflect_ray;
		if (u01(rng)< Rtheta / (1 - Rtheta))//refract
		{
			//ray.direction = glm::refract(ray.direction, normal, 1.0);
		}
		else{

			//ray.direction = glm::reflect(-ray.direction, normal);
			//ray.origin = intersect;
			//	float Specular = glm::pow(Base, Material.exponent());
			//	color = m.specular.color * Specular
		}

	}
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.

1 participant