| /oneTBB/examples/parallel_for/tachyon/src/ |
| H A D | imap.cpp | 74 color ImageMap(rawimage *image, flt u, flt v) { in ImageMap() 76 flt x, y, px, py; in ImageMap() 102 colx.r = (flt)((flt)ptr[0] + px * ((flt)ptr2[0] - (flt)ptr[0])) / 255.0; in ImageMap() 103 colx.g = (flt)((flt)ptr[1] + px * ((flt)ptr2[1] - (flt)ptr[1])) / 255.0; in ImageMap() 104 colx.b = (flt)((flt)ptr[2] + px * ((flt)ptr2[2] - (flt)ptr[2])) / 255.0; in ImageMap() 109 colx2.r = ((flt)ptr[0] + px * ((flt)ptr2[0] - (flt)ptr[0])) / 255.0; in ImageMap() 110 colx2.g = ((flt)ptr[1] + px * ((flt)ptr2[1] - (flt)ptr[1])) / 255.0; in ImageMap() 111 colx2.b = ((flt)ptr[2] + px * ((flt)ptr2[2] - (flt)ptr[2])) / 255.0; in ImageMap()
|
| H A D | types.hpp | 100 flt x; /* X coordinate value */ 101 flt y; /* Y coordinate value */ 102 flt z; /* Z coordinate value */ 106 flt r; /* Red component */ 107 flt g; /* Green component */ 108 flt b; /* Blue component */ 131 flt opacity; /* opacity per unit length */ 141 flt ambient; /* ambient lighting */ 142 flt diffuse; /* diffuse reflection */ 143 flt phong; /* phong specular highlights */ [all …]
|
| H A D | coordsys.hpp | 54 void xytopolar(flt, flt, flt, flt *, flt *); 55 void xyztocyl(vector, flt, flt *, flt *); 56 void xyztospr(vector, flt *, flt *);
|
| H A D | extvol.hpp | 60 flt ambient; 61 flt diffuse; 62 flt opacity; 64 flt (*evaluator)(flt, flt, flt); 71 flt (*evaluator)(flt, flt, flt));
|
| H A D | quadric.hpp | 53 flt a; 54 flt b; 55 flt c; 56 flt d; 57 flt e; 58 flt f; 59 flt g; 60 flt h; 61 flt i; 62 flt j;
|
| H A D | coordsys.cpp | 54 void xytopolar(flt x, flt y, flt rad, flt* u, flt* v) { in xytopolar() 55 flt r1; in xytopolar() 64 void xyztocyl(vector pnt, flt height, flt* u, flt* v) { in xyztocyl() 65 flt r1; in xyztocyl() 76 void xyztospr(vector pnt, flt* u, flt* v) { in xyztospr() 77 flt r1, phi, theta; in xyztospr()
|
| H A D | vector.hpp | 52 flt VDot(vector *, vector *); 54 flt VLength(vector *); 58 void VAddS(flt, vector *, vector *, vector *); 59 vector Raypnt(ray *, flt); 60 void VScale(vector *a, flt s); 62 void ColorAddS(color *a, color *b, flt s); 64 void ColorScale(color *a, flt s);
|
| H A D | vector.cpp | 54 flt VDot(vector *a, vector *b) { in VDot() 64 flt VLength(vector *a) { in VLength() 65 return (flt)sqrt((a->x * a->x) + (a->y * a->y) + (a->z * a->z)); in VLength() 69 flt len; in VNorm() 91 void VAddS(flt a, vector *A, vector *B, vector *C) { in VAddS() 97 vector Raypnt(ray *a, flt t) { in Raypnt() 107 void VScale(vector *a, flt s) { in VScale() 113 void ColorAddS(color *a, color *b, flt s) { in ColorAddS() 125 void ColorScale(color *a, flt s) { in ColorScale()
|
| H A D | shade.hpp | 56 color shade_reflection(ray *, vector *, vector *, flt); 57 color shade_transmission(ray *, vector *, flt); 58 flt shade_phong(ray *incident, vector *hit, vector *N, vector *L, flt specpower);
|
| H A D | ring.hpp | 52 object *newring(void *tex, vector ctr, vector norm, flt in, flt out); 62 flt inrad; 63 flt outrad;
|
| H A D | texture.cpp | 67 flt u, v; in image_cyl_texture() 93 flt u, v; in image_sphere_texture() 119 flt u, v; in image_plane_texture() 150 flt fnum; in grit_texture() 165 flt xh, yh, zh; in checker_texture() 195 flt u, v; in cyl_checker_texture() 227 flt x, y, z; in wood_texture() 287 int Noise(flt x, flt y, flt z) { in Noise() 337 flt i, d; in marble_texture() 338 flt x, y, z; in marble_texture() [all …]
|
| H A D | intersect.hpp | 60 void add_intersection(flt, object *, ray *); 61 int closest_intersection(flt *, object **, intersectstruct *); 63 int shadow_intersection(intersectstruct *intstruct, flt maxdist);
|
| H A D | cylinder.hpp | 52 object *newcylinder(void *, vector, vector, flt); 53 object *newfcylinder(void *, vector, vector, flt); 64 flt rad;
|
| H A D | extvol.cpp | 83 flt (*evaluator)(flt, flt, flt)) { in newextvol() argument 127 color ExtVoxelColor(flt scalar) { in ExtVoxelColor() 153 flt a, tx1, tx2, ty1, ty2, tz1, tz2; in ext_volume_texture() 154 flt tnear, tfar; in ext_volume_texture() 155 flt t, tdist, dt, ddt, sum, tt; in ext_volume_texture() 157 flt scalar, transval; in ext_volume_texture() 162 flt inten; in ext_volume_texture()
|
| H A D | texture.hpp | 64 int Noise(flt, flt, flt);
|
| H A D | shade.cpp | 73 flt inten, t, Llen; in shader() 140 flt phongval; in shader() 181 color shade_reflection(ray* incident, vector* hit, vector* N, flt specular) { in shade_reflection() 210 color shade_transmission(ray* incident, vector* hit, flt trans) { in shade_transmission() 233 flt shade_phong(ray* incident, vector* hit, vector* N, vector* L, flt specpower) { in shade_phong() 235 flt inten; in shade_phong()
|
| H A D | ring.cpp | 65 object *newring(void *tex, vector ctr, vector norm, flt inrad, flt outrad) { in newring() 95 flt d; in ring_intersect() 96 flt t, td; in ring_intersect()
|
| H A D | vol.cpp | 130 color VoxelColor(flt scalar) { in VoxelColor() 163 flt a, tx1, tx2, ty1, ty2, tz1, tz2; in scalar_volume_texture() 164 flt tnear, tfar; in scalar_volume_texture() 165 flt t, tdist, dt, sum, tt; in scalar_volume_texture() 168 flt scalar, transval; in scalar_volume_texture() 251 tdist = sqrt((flt)(vol->xres * vol->xres + vol->yres * vol->yres + vol->zres * vol->zres)); in scalar_volume_texture() 278 scalar = (flt)((flt)1.0 * ((int)ptr[0])) / 255.0; in scalar_volume_texture()
|
| H A D | camera.cpp | 61 flt px, py, sx, sy; in camray() 63 sx = (flt)scene->hres; in camray() 64 sy = (flt)scene->vres; in camray()
|
| H A D | imap.hpp | 54 color ImageMap(rawimage *, flt, flt);
|
| H A D | util.cpp | 86 flt timertime(timer st, timer fn) { in timertime() 107 flt timertime(timer st, timer fn) { in timertime() 124 flt timertime(timer st, timer fn) { in timertime()
|
| H A D | light.hpp | 58 flt rad; 61 point_light *newlight(void *, vector, flt);
|
| H A D | sphere.hpp | 52 object *newsphere(void *, vector, flt); 62 flt rad;
|
| H A D | intersect.cpp | 118 void add_intersection(flt t, object *obj, ray *ry) { in add_intersection() 138 int closest_intersection(flt *t, object **obj, intersectstruct *intstruct) { in closest_intersection() 152 int shadow_intersection(intersectstruct *intstruct, flt maxdist) { in shadow_intersection()
|
| H A D | grid.cpp | 93 g->voxsize.x /= (flt)g->xsize; in newgrid() 94 g->voxsize.y /= (flt)g->ysize; in newgrid() 95 g->voxsize.z /= (flt)g->zsize; in newgrid() 334 flt len; in engrid_cell() 356 xs = (int)((flt)numcbrt * gsize.x); in engrid_cell() 359 ys = (int)((flt)numcbrt * gsize.y); in engrid_cell() 362 zs = (int)((flt)numcbrt * gsize.z); in engrid_cell() 471 flt tnear, tfar, offset; in grid_intersect() 633 static int grid_bounds_intersect(grid *g, ray *ry, flt *nr, flt *fr) { in grid_bounds_intersect() 634 flt a, tx1, tx2, ty1, ty2, tz1, tz2; in grid_bounds_intersect() [all …]
|