diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-14 01:10:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-14 01:12:53 +0300 |
commit | 0547a7753643f45861306542857d97215ecb2c4f (patch) | |
tree | 1faad834721f7f13d4a0756bd80607963386fccd /source/blender/blenkernel/intern/studiolight.c | |
parent | d30ec73d763ed01795100ec5d3a0ef9dc8521f7b (diff) |
Cleanup: use const args, variables
Diffstat (limited to 'source/blender/blenkernel/intern/studiolight.c')
-rw-r--r-- | source/blender/blenkernel/intern/studiolight.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c index 9f45826d59e..ff92704e2d1 100644 --- a/source/blender/blenkernel/intern/studiolight.c +++ b/source/blender/blenkernel/intern/studiolight.c @@ -946,7 +946,7 @@ BLI_INLINE void studiolight_spherical_harmonics_eval(StudioLight *sl, /* This modify the radiance into irradiance. */ static void studiolight_spherical_harmonics_apply_band_factors(StudioLight *sl, float (*sh)[3]) { - static float sl_sh_band_factors[5] = { + static const float sl_sh_band_factors[5] = { 1.0f, 2.0f / 3.0f, 1.0f / 4.0f, @@ -1074,7 +1074,7 @@ static float wrapped_lighting(float NL, float w) static float blinn_specular(const float L[3], const float I[3], const float N[3], - float R[3], + const float R[3], float NL, float roughness, float wrap) |