Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
孙万捷 authored and 孙万捷 committed Jul 10, 2016
1 parent 60474fc commit f1d585c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/bsdf/microfacet.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ __inline__ __device__ float microfacet_brdf_f(const glm::vec3& wi, const glm::ve

//else
auto wh = glm::normalize(wi + wo);
auto fresnelTerm = schlick_fresnel(1.f, ior, fmaxf(0.f, glm::dot(wh, wi)));
auto fresnelTerm = schlick_fresnel(1.f, ior, fmaxf(0.f, glm::dot(wh, wo)));
auto geometryTerm = geometry_cook_torrance(wi, wo, normal, wh);
#ifdef DISTRIBUTION_BECKMANN
auto D = beckmann_distribution(normal, wh, alpha);
Expand Down
4 changes: 2 additions & 2 deletions gui/canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
Canvas::Canvas(const QGLFormat &format, QWidget *parent) : QGLWidget(format, parent)
{
// lights
lights.SetEnvironmentLight("LA_Downtown_Helipad_GoldenHour_Env.hdr");
lights.SetEnvironmentLightIntensity(0.f);
lights.SetEnvionmentLight(glm::vec3(1.f));
lights.SetEnvironmentLightIntensity(0.5f);
setup_env_lights(lights.environmentLight);

// render params
Expand Down

0 comments on commit f1d585c

Please sign in to comment.