Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_lights.c
| Show First 20 Lines • Show All 715 Lines • ▼ Show 20 Lines | static void eevee_light_setup(Object *ob, EEVEE_Light *evli) | ||||
| evli->shadowid = -1.0f; | evli->shadowid = -1.0f; | ||||
| } | } | ||||
| /** | /** | ||||
| * Special ball distribution: | * Special ball distribution: | ||||
| * Point are distributed in a way that when they are orthogonaly | * Point are distributed in a way that when they are orthogonaly | ||||
| * projected into any plane, the resulting distribution is (close to) | * projected into any plane, the resulting distribution is (close to) | ||||
| * a uniform disc distribution. | * a uniform disc distribution. | ||||
| **/ | */ | ||||
| static void sample_ball(int sample_ofs, float radius, float rsample[3]) | static void sample_ball(int sample_ofs, float radius, float rsample[3]) | ||||
| { | { | ||||
| double ht_point[3]; | double ht_point[3]; | ||||
| double ht_offset[3] = {0.0, 0.0, 0.0}; | double ht_offset[3] = {0.0, 0.0, 0.0}; | ||||
| uint ht_primes[3] = {2, 3, 7}; | uint ht_primes[3] = {2, 3, 7}; | ||||
| BLI_halton_3D(ht_primes, ht_offset, sample_ofs, ht_point); | BLI_halton_3D(ht_primes, ht_offset, sample_ofs, ht_point); | ||||
| ▲ Show 20 Lines • Show All 760 Lines • Show Last 20 Lines | |||||