Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluzpaz <luzpaz>2021-12-07 06:31:05 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-12-07 06:39:52 +0300
commitf159d49f56cedccd509ee93f5a5fb51f4f39eeb8 (patch)
tree15e9e730bd927020bcb7b50592b6621f890fae26 /source/blender/draw
parent92dae5775f6b4771e21df5865e74d679fb0e37a0 (diff)
Cleanup: Fix various source typos
This is a continuation of D13462 to clean up source typos. Differential Revision: https://developer.blender.org/D13471
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/eevee/shaders/effect_dof_bokeh_frag.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/effect_dof_bokeh_frag.glsl b/source/blender/draw/engines/eevee/shaders/effect_dof_bokeh_frag.glsl
index 5fd00986adc..051a08d25e6 100644
--- a/source/blender/draw/engines/eevee/shaders/effect_dof_bokeh_frag.glsl
+++ b/source/blender/draw/engines/eevee/shaders/effect_dof_bokeh_frag.glsl
@@ -50,10 +50,10 @@ float circle_to_polygon_angle(float sides_count, float theta)
float ratio = (local_theta - halfside_angle) / halfside_angle;
float halfside_len = polygon_sides_length(sides_count) * 0.5;
- float oposite = ratio * halfside_len;
+ float opposite = ratio * halfside_len;
/* NOTE: atan(y_over_x) has output range [-M_PI_2..M_PI_2]. */
- float final_local_theta = atan(oposite / adjacent);
+ float final_local_theta = atan(opposite / adjacent);
return side * side_angle + final_local_theta;
}