diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-24 19:46:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-24 19:48:29 +0300 |
commit | 342e73f90fc5c41af8db3a6e3dfdf1746f7f5bc4 (patch) | |
tree | 47fdb91d8e16b1c89f9ca358cb0172e862905ee1 /source/blender/gpu/intern/gpu_material.c | |
parent | 9682e43bf9e078165b3d4d52c6a19c430ec2cbf2 (diff) |
Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.
Differential Revision: https://developer.blender.org/D3719
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index d5aa7177e11..ac97867f40f 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -67,7 +67,7 @@ typedef struct GPUColorBandBuilder { } GPUColorBandBuilder; struct GPUMaterial { - Scene *scene; /* DEPRECATED was only usefull for lamps */ + Scene *scene; /* DEPRECATED was only useful for lamps */ Material *ma; /* material for mesh surface, worlds or something else. @@ -141,7 +141,7 @@ enum { /* Functions */ -/* Returns the adress of the future pointer to coba_tex */ +/* Returns the address of the future pointer to coba_tex */ GPUTexture **gpu_material_ramp_texture_row_set(GPUMaterial *mat, int size, float *pixels, float *row) { /* In order to put all the colorbands into one 1D array texture, @@ -467,7 +467,7 @@ static void compute_sss_translucence_kernel( /* Distance from surface. */ float d = kd->max_radius * ((float)i + 0.00001f) / ((float)resolution); - /* For each distance d we compute the radiance incomming from an hypothetic parallel plane. */ + /* For each distance d we compute the radiance incoming from an hypothetic parallel plane. */ /* Compute radius of the footprint on the hypothetic plane */ float r_fp = sqrtf(kd->max_radius * kd->max_radius - d * d); float r_step = r_fp / INTEGRAL_RESOLUTION; @@ -482,7 +482,7 @@ static void compute_sss_translucence_kernel( profile[1] = eval_profile(dist, falloff_type, sharpness, kd->param[1]); profile[2] = eval_profile(dist, falloff_type, sharpness, kd->param[2]); - /* Since the profile and configuration are radially symetrical we + /* Since the profile and configuration are radially symmetrical we * can just evaluate it once and weight it accordingly */ float r_next = r + r_step; float disk_area = (M_PI * r_next * r_next) - (M_PI * r * r); |