diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-31 05:00:10 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-31 05:01:41 +0300 |
commit | 3d132ead502f792fc67117bad5d101c137f33fef (patch) | |
tree | c370628fc2a445faab64cc839d08f8ccf25a0a3a /source/blender/draw | |
parent | 41ee5382f655fe2e76c0527e43b239e15478b310 (diff) |
Cleanup: spelling, trailing space for comment-blocks
Diffstat (limited to 'source/blender/draw')
4 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/draw/engines/image/image_drawing_mode.hh b/source/blender/draw/engines/image/image_drawing_mode.hh index f43bbadfa91..14529797405 100644 --- a/source/blender/draw/engines/image/image_drawing_mode.hh +++ b/source/blender/draw/engines/image/image_drawing_mode.hh @@ -58,7 +58,7 @@ struct OneTextureMethod { { /* Although this works, computing an inverted matrix adds some precision issues and leads to * tearing artifacts. This should be modified to use the scaling and transformation from the - * not inverted matrix.*/ + * not inverted matrix. */ float4x4 mat(instance_data->ss_to_texture); float4x4 mat_inv = mat.inverted(); float3 min_uv = mat_inv * float3(0.0f, 0.0f, 0.0f); @@ -420,7 +420,7 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD /* IMB_transform works in a non-consistent space. This should be documented or fixed!. * Construct a variant of the info_uv_to_texture that adds the texel space - * transformation.*/ + * transformation. */ float uv_to_texel[4][4]; copy_m4_m4(uv_to_texel, instance_data.ss_to_texture); float scale[3] = {static_cast<float>(texture_width) / static_cast<float>(tile_buffer.x), diff --git a/source/blender/draw/engines/image/image_usage.hh b/source/blender/draw/engines/image/image_usage.hh index bea5c3853b0..f4ba3f495ce 100644 --- a/source/blender/draw/engines/image/image_usage.hh +++ b/source/blender/draw/engines/image/image_usage.hh @@ -14,7 +14,7 @@ struct ImageUsage { /** Render pass of the image that is used. */ short pass = 0; - /** Layer of the image that is used.*/ + /** Layer of the image that is used. */ short layer = 0; /** View of the image that is used. */ short view = 0; diff --git a/source/blender/draw/intern/draw_common_shader_shared.h b/source/blender/draw/intern/draw_common_shader_shared.h index 46382ed7f16..ecddddded78 100644 --- a/source/blender/draw/intern/draw_common_shader_shared.h +++ b/source/blender/draw/intern/draw_common_shader_shared.h @@ -13,7 +13,7 @@ typedef struct GlobalsUboStorage GlobalsUboStorage; /* Future Plan: These globals were once shared between multiple overlay engines. But now that they * have been merged into one engine, there is no reasons to keep these globals out of the overlay - * engine. */ + * engine. */ #define UBO_FIRST_COLOR colorWire #define UBO_LAST_COLOR colorUVShadow diff --git a/source/blender/draw/intern/shaders/common_gpencil_lib.glsl b/source/blender/draw/intern/shaders/common_gpencil_lib.glsl index 9e3c219a30b..d6aaac78f14 100644 --- a/source/blender/draw/intern/shaders/common_gpencil_lib.glsl +++ b/source/blender/draw/intern/shaders/common_gpencil_lib.glsl @@ -81,7 +81,7 @@ float gpencil_stroke_thickness_modulate(float thickness, vec4 ndc_pos, vec4 view float gpencil_clamp_small_stroke_thickness(float thickness, vec4 ndc_pos) { /* To avoid aliasing artifacts, we clamp the line thickness and - * reduce its opacity in the fragment shader.*/ + * reduce its opacity in the fragment shader. */ float min_thickness = ndc_pos.w * 1.3; thickness = max(min_thickness, thickness); |