Home | History | Annotate | Download | only in benchmarks

Lines Matching refs:info

458         var info = new Flog.RayTracer.IntersectionInfo();
459 info.shape = this;
468 info.isHit = true;
469 info.distance = (-B) - Math.sqrt(D);
470 info.position = Flog.RayTracer.Vector.prototype.add(
474 info.distance
477 info.normal = Flog.RayTracer.Vector.prototype.subtract(
478 info.position,
482 info.color = this.material.getColor(0,0);
484 info.isHit = false;
486 return info;
510 var info = new Flog.RayTracer.IntersectionInfo();
513 if(Vd == 0) return info; // no intersection
516 if(t <= 0) return info;
518 info.shape = this;
519 info.isHit = true;
520 info.position = Flog.RayTracer.Vector.prototype.add(
527 info.normal = this.position;
528 info.distance = t;
533 var u = info.position.dot(vU);
534 var v = info.position.dot(vV);
535 info.color = this.material.getColor(u,v);
537 info.color = this.material.getColor(0,0);
540 return info;
703 var info = this.testIntersection(ray, scene, null);
704 if(info.isHit){
705 var color = this.rayTrace(info, ray, scene, 0);
720 var info = shape.intersect(ray);
721 if(info.isHit && info.distance >= 0 && info.distance < best.distance){
722 best = info;
740 rayTrace: function(info, ray, scene, depth){
742 var color = Flog.RayTracer.Color.prototype.multiplyScalar(info.color, scene.background.ambience);
744 var shininess = Math.pow(10, info.shape.material.gloss + 1);
752 info.position
756 var L = v.dot(info.normal);
761 info.color,
775 if(this.options.renderReflections && info.shape.material.reflection > 0)
777 var reflectionRay = this.getReflectionRay(info.position, info.normal, ray.direction);
778 var refl = this.testIntersection(reflectionRay, scene, info.shape);
789 info.shape.material.reflection
802 var shadowRay = new Flog.RayTracer.Ray(info.position, v);
804 shadowInfo = this.testIntersection(shadowRay, scene, info.shape);
805 if(shadowInfo.isHit && shadowInfo.shape != info.shape /*&& shadowInfo.shape.type != 'PLANE'*/){
813 if(this.options.renderHighlights && !shadowInfo.isHit && info.shape.material.gloss > 0){
815 info.shape.position,
821 info.shape.position
829 var glossWeight = Math.pow(Math.max(info.normal.dot(H), 0), shininess);