diff options
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/extra_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/extra_vert.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/extra_vert.glsl b/source/blender/draw/engines/overlay/shaders/extra_vert.glsl index 92db27ea6dd..035fab1040e 100644 --- a/source/blender/draw/engines/overlay/shaders/extra_vert.glsl +++ b/source/blender/draw/engines/overlay/shaders/extra_vert.glsl @@ -137,11 +137,11 @@ void main() } /* Empties */ else if ((vclass & VCLASS_EMPTY_SCALED) != 0) { - /* This is a bit silly but we avoid scalling the object matrix on CPU (saving a mat4 mul) */ + /* This is a bit silly but we avoid scaling the object matrix on CPU (saving a mat4 mul) */ vpos *= empty_scale; } else if ((vclass & VCLASS_EMPTY_SIZE) != 0) { - /* This is a bit silly but we avoid scalling the object matrix on CPU (saving a mat4 mul) */ + /* This is a bit silly but we avoid scaling the object matrix on CPU (saving a mat4 mul) */ vpos *= empty_size; } else if ((vclass & VCLASS_EMPTY_AXES) != 0) { @@ -177,7 +177,7 @@ void main() vec3 world_pos; if ((vclass & VCLASS_SCREENSPACE) != 0) { - /* Relative to DPI scalling. Have constant screen size. */ + /* Relative to DPI scaling. Have constant screen size. */ vec3 screen_pos = screenVecs[0].xyz * vpos.x + screenVecs[1].xyz * vpos.y; vec3 p = (obmat * vec4(vofs, 1.0)).xyz; float screen_size = mul_project_m4_v3_zfac(p) * sizePixel; |