From 5b11ce915b1774381b7d334d81338a67f7ac896f Mon Sep 17 00:00:00 2001 From: WestLangley Date: Tue, 3 Nov 2015 10:20:19 -0500 Subject: [PATCH] Function name changes as per @bhouston --- src/renderers/shaders/ShaderChunk/lights_pars.glsl | 4 ++-- src/renderers/shaders/ShaderChunk/lights_template.glsl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderers/shaders/ShaderChunk/lights_pars.glsl b/src/renderers/shaders/ShaderChunk/lights_pars.glsl index 4f518da6a4..0f9f548074 100644 --- a/src/renderers/shaders/ShaderChunk/lights_pars.glsl +++ b/src/renderers/shaders/ShaderChunk/lights_pars.glsl @@ -124,7 +124,7 @@ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { #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 @@ -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 diff --git a/src/renderers/shaders/ShaderChunk/lights_template.glsl b/src/renderers/shaders/ShaderChunk/lights_template.glsl index b811063ef1..b98ab88513 100644 --- a/src/renderers/shaders/ShaderChunk/lights_template.glsl +++ b/src/renderers/shaders/ShaderChunk/lights_template.glsl @@ -76,7 +76,7 @@ GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal #if defined( USE_ENVMAP ) && defined( PHYSICAL ) // TODO, replace 8 with the real maxMIPLevel - indirectDiffuseIrradiance += getLightProbeIrradiance( /*lightProbe,*/ geometry, 8 ); + indirectDiffuseIrradiance += getLightProbeIndirectIrradiance( /*lightProbe,*/ geometry, 8 ); #endif @@ -91,7 +91,7 @@ GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal { // 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 ); -- GitLab