Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_depth_of_field.c
| Context not available. | |||||
| cosf(theta - side_angle * floorf((sides_count * theta + M_PI) / (2.0f * M_PI))); | cosf(theta - side_angle * floorf((sides_count * theta + M_PI) / (2.0f * M_PI))); | ||||
| } | } | ||||
| /* Remap input angle to have homogenous spacing of points along a polygon edge. | /* Remap input angle to have homogeneous spacing of points along a polygon edge. | ||||
| * Expect theta to be in [0..2pi] range. */ | * Expect theta to be in [0..2pi] range. */ | ||||
| static float circle_to_polygon_angle(float sides_count, float theta) | static float circle_to_polygon_angle(float sides_count, float theta) | ||||
| { | { | ||||
| Context not available. | |||||