Home | History | Annotate | Download | only in v8-v4

Lines Matching refs:info

453         var info = new Flog.RayTracer.IntersectionInfo();
454 info.shape = this;
463 info.isHit = true;
464 info.distance = (-B) - Math.sqrt(D);
465 info.position = Flog.RayTracer.Vector.prototype.add(
469 info.distance
472 info.normal = Flog.RayTracer.Vector.prototype.subtract(
473 info.position,
477 info.color = this.material.getColor(0,0);
479 info.isHit = false;
481 return info;
505 var info = new Flog.RayTracer.IntersectionInfo();
508 if(Vd == 0) return info; // no intersection
511 if(t <= 0) return info;
513 info.shape = this;
514 info.isHit = true;
515 info.position = Flog.RayTracer.Vector.prototype.add(
522 info.normal = this.position;
523 info.distance = t;
528 var u = info.position.dot(vU);
529 var v = info.position.dot(vV);
530 info.color = this.material.getColor(u,v);
532 info.color = this.material.getColor(0,0);
535 return info;
698 var info = this.testIntersection(ray, scene, null);
699 if(info.isHit){
700 var color = this.rayTrace(info, ray, scene, 0);
715 var info = shape.intersect(ray);
716 if(info.isHit && info.distance >= 0 && info.distance < best.distance){
717 best = info;
735 rayTrace: function(info, ray, scene, depth){
737 var color = Flog.RayTracer.Color.prototype.multiplyScalar(info.color, scene.background.ambience);
739 var shininess = Math.pow(10, info.shape.material.gloss + 1);
747 info.position
751 var L = v.dot(info.normal);
756 info.color,
770 if(this.options.renderReflections && info.shape.material.reflection > 0)
772 var reflectionRay = this.getReflectionRay(info.position, info.normal, ray.direction);
773 var refl = this.testIntersection(reflectionRay, scene, info.shape);
784 info.shape.material.reflection
797 var shadowRay = new Flog.RayTracer.Ray(info.position, v);
799 shadowInfo = this.testIntersection(shadowRay, scene, info.shape);
800 if(shadowInfo.isHit && shadowInfo.shape != info.shape /*&& shadowInfo.shape.type != 'PLANE'*/){
808 if(this.options.renderHighlights && !shadowInfo.isHit && info.shape.material.gloss > 0){
810 info.shape.position,
816 info.shape.position
824 var glossWeight = Math.pow(Math.max(info.normal.dot(H), 0), shininess);