Searched refs:li (Results 1 – 3 of 3) sorted by relevance
| /oneTBB/examples/parallel_for/tachyon/src/ |
| H A D | shade.cpp | 64 void add_light(point_light* li) { in add_light() argument 65 lightlist[numlights] = li; in add_light() 76 point_light* li; in shader() local 105 li = lightlist[i]; /* set li=to the current light */ in shader() 106 VSUB(li->ctr, hit, L) /* find the light vector */ in shader() 129 shadowray.e = li->ctr; in shader() 136 ColorAddS(&diffuse, &li->tex->col, inten); in shader() 145 ColorAddS(&phongcol, &(li->tex->col), phongval); in shader()
|
| H A D | api.cpp | 316 point_light *li; in rt_light() local 318 li = newlight(tex, (vector)ctr, rad); in rt_light() 320 li->tex->islight = 1; in rt_light() 321 li->tex->shadowcast = 1; in rt_light() 322 li->tex->diffuse = 0.0; in rt_light() 323 li->tex->specular = 0.0; in rt_light() 324 li->tex->opacity = 1.0; in rt_light() 326 add_light(li); in rt_light() 327 add_object((object *)li); in rt_light()
|
| H A D | extvol.cpp | 159 point_light *li; in ext_volume_texture() local 298 li = lightlist[i]; in ext_volume_texture() 299 VSUB(li->ctr, (*hit), L) in ext_volume_texture() 306 diffint.r += inten * li->tex->col.r; in ext_volume_texture() 307 diffint.g += inten * li->tex->col.g; in ext_volume_texture() 308 diffint.b += inten * li->tex->col.b; in ext_volume_texture()
|