Minor changes.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-11 14:54:46 -04:00
parent f150f8f24c
commit a6821c429d
5 changed files with 6 additions and 6 deletions

View File

@@ -25,5 +25,5 @@ vec3 DirectionalLight::diffuse(vec3 normal, Ray & r, vec3 i_pos, Material & m) c
}
vec3 DirectionalLight::specular(vec3 normal, Ray & r, vec3 i_pos, Material & m) const {
return m.m_specular * m_brdf->specular(m_position, normal, r, m_specular, m.m_shininess);
return m_brdf->specular(m_position, normal, r, m_specular, m.m_shininess);
}