diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-06 04:12:09 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-06 04:13:00 +0300 |
commit | 87d737cd792183d409760ab1f0a778abb9f1daa3 (patch) | |
tree | 14e4a18e75eb3adc20e1b5579ab4fa27cadeb839 /source/blender/draw/engines/workbench | |
parent | 51bd26d0faad306183c58bff0865b72cf99fbe90 (diff) |
Cleanup: spelling in code comments
Diffstat (limited to 'source/blender/draw/engines/workbench')
-rw-r--r-- | source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl | 4 | ||||
-rw-r--r-- | source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl b/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl index 11d7c85d43a..2a3b5337451 100644 --- a/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl +++ b/source/blender/draw/engines/workbench/shaders/workbench_effect_dof_frag.glsl @@ -89,7 +89,7 @@ void main() texel = (texel - 0.5) / vec4(textureSize(sceneColorTex, 0).xyxy); /* Using texelFetch can bypass the mip range setting on some platform. - * Using texture Lod fix this issue. Note that we need to disable filtering to get the right + * Using texture LOD fixes this issue. Note that we need to disable filtering to get the right * texel values. */ vec4 color1 = textureLod(sceneColorTex, texel.xy, 0.0); vec4 color2 = textureLod(sceneColorTex, texel.zw, 0.0); @@ -200,7 +200,7 @@ void main() vec2 get_random_vector(float offset) { - /* Interlieved gradient noise by Jorge Jimenez + /* Interleaved gradient noise by Jorge Jimenez * http://www.iryoku.com/next-generation-post-processing-in-call-of-duty-advanced-warfare */ float ign = fract(offset + 52.9829189 * fract(0.06711056 * gl_FragCoord.x + 0.00583715 * gl_FragCoord.y)); diff --git a/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl b/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl index afba3a0d784..133fe7f4b0f 100644 --- a/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl +++ b/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl @@ -30,7 +30,7 @@ vec4 sample_tricubic(sampler3D ima, vec3 co) vec3 f = co - tc; vec3 f2 = f * f; vec3 f3 = f2 * f; - /* Bspline coefs (optimized) */ + /* Bspline coefficients (optimized). */ vec3 w3 = f3 / 6.0; vec3 w0 = -w3 + f2 * 0.5 - f * 0.5 + 1.0 / 6.0; vec3 w1 = f3 * 0.5 - f2 + 2.0 / 3.0; |