Skip to content

Commit aaf7b1e

Browse files
authored
Renamed some functions (#22367)
1 parent 0e2a67b commit aaf7b1e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default /* glsl */`
77
88
#endif
99
10-
vec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry ) {
10+
vec3 getIBLIrradiance( const in GeometricContext geometry ) {
1111
1212
#if defined( ENVMAP_TYPE_CUBE_UV )
1313
@@ -25,7 +25,7 @@ export default /* glsl */`
2525
2626
}
2727
28-
vec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
28+
vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
2929
3030
#if defined( ENVMAP_TYPE_CUBE_UV )
3131

src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ export default /* glsl */`
1818
1919
#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
2020
21-
iblIrradiance += getLightProbeIndirectIrradiance( /*lightProbe,*/ geometry );
21+
iblIrradiance += getIBLIrradiance( geometry );
2222
2323
#endif
2424
2525
#endif
2626
2727
#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
2828
29-
radiance += getLightProbeIndirectRadiance( /*specularLightProbe,*/ geometry.viewDir, geometry.normal, material.specularRoughness );
29+
radiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.specularRoughness );
3030
3131
#ifdef CLEARCOAT
3232
33-
clearcoatRadiance += getLightProbeIndirectRadiance( /*specularLightProbe,*/ geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );
33+
clearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );
3434
3535
#endif
3636

0 commit comments

Comments
 (0)