提交 5b11ce91 编写于 作者: W WestLangley

Function name changes as per @bhouston

上级 d53cc393
...@@ -124,7 +124,7 @@ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { ...@@ -124,7 +124,7 @@ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
#if defined( USE_ENVMAP ) && defined( PHYSICAL ) #if defined( USE_ENVMAP ) && defined( PHYSICAL )
vec3 getLightProbeIrradiance( /*const in SpecularLightProbe specularLightProbe,*/ const in GeometricContext geometry, const in int maxMIPLevel ) { vec3 getLightProbeIndirectIrradiance( /*const in SpecularLightProbe specularLightProbe,*/ const in GeometricContext geometry, const in int maxMIPLevel ) {
#ifdef DOUBLE_SIDED #ifdef DOUBLE_SIDED
...@@ -181,7 +181,7 @@ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { ...@@ -181,7 +181,7 @@ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
} }
vec3 getLightProbeRadiance( /*const in SpecularLightProbe specularLightProbe,*/ const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) { vec3 getLightProbeIndirectRadiance( /*const in SpecularLightProbe specularLightProbe,*/ const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {
#ifdef ENVMAP_MODE_REFLECTION #ifdef ENVMAP_MODE_REFLECTION
......
...@@ -76,7 +76,7 @@ GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal ...@@ -76,7 +76,7 @@ GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal
#if defined( USE_ENVMAP ) && defined( PHYSICAL ) #if defined( USE_ENVMAP ) && defined( PHYSICAL )
// TODO, replace 8 with the real maxMIPLevel // TODO, replace 8 with the real maxMIPLevel
indirectDiffuseIrradiance += getLightProbeIrradiance( /*lightProbe,*/ geometry, 8 ); indirectDiffuseIrradiance += getLightProbeIndirectIrradiance( /*lightProbe,*/ geometry, 8 );
#endif #endif
...@@ -91,7 +91,7 @@ GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal ...@@ -91,7 +91,7 @@ GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal
{ {
// TODO, replace 8 with the real maxMIPLevel // TODO, replace 8 with the real maxMIPLevel
vec3 indirectSpecularRadiance = getLightProbeRadiance( /*specularLightProbe,*/ geometry, Material_BlinnShininessExponent( material ), 8 ); vec3 indirectSpecularRadiance = getLightProbeIndirectRadiance( /*specularLightProbe,*/ geometry, Material_BlinnShininessExponent( material ), 8 );
Material_RE_IndirectSpecularLight( indirectSpecularRadiance, geometry, material, reflectedLight ); Material_RE_IndirectSpecularLight( indirectSpecularRadiance, geometry, material, reflectedLight );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册