提交 88c51fed 编写于 作者: M Mr.doob

Clean up.

上级 9e6b3e1f
......@@ -83,8 +83,6 @@ IncidentLight directLight;
#if defined( RE_IndirectDiffuse )
{
vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
#ifdef USE_LIGHTMAP
......@@ -112,19 +110,13 @@ IncidentLight directLight;
RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );
}
#endif
#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
{
// TODO, replace 8 with the real maxMIPLevel
vec3 radiance = getLightProbeIndirectRadiance( /*specularLightProbe,*/ geometry, Material_BlinnShininessExponent( material ), 8 );
RE_IndirectSpecular( radiance, geometry, material, reflectedLight );
}
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册