Skip to content

Submission: xinyue Zhu#11

Open
Zhuxinyue909 wants to merge 11 commits intoCIS565-Fall-2015:masterfrom
Zhuxinyue909:master
Open

Submission: xinyue Zhu#11
Zhuxinyue909 wants to merge 11 commits intoCIS565-Fall-2015:masterfrom
Zhuxinyue909:master

Conversation

@Zhuxinyue909
Copy link
Copy Markdown

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