Lines Matching refs:new
11 var RayTrace = new BenchmarkSuite('RayTrace', 739989, [
12 new Benchmark('RayTrace', renderScene)
95 var result = new Flog.RayTracer.Color(0,0,0);
105 var result = new Flog.RayTracer.Color(0,0,0);
117 var result = new Flog.RayTracer.Color(0,0,0);
127 var result = new Flog.RayTracer.Color(0,0,0);
137 var result = new Flog.RayTracer.Color(0,0,0);
147 var result = new Flog.RayTracer.Color(0,0,0);
168 var result = new Flog.RayTracer.Color(0,0,0);
237 return new Flog.RayTracer.Vector(this.x / m, this.y / m, this.z / m);
245 return new Flog.RayTracer.Vector(
256 return new Flog.RayTracer.Vector(w.x + v.x, w.y + v.y, w.z + v.z);
261 return new Flog.RayTracer.Vector(v.x - w.x, v.y - w.y, v.z - w.z);
265 return new Flog.RayTracer.Vector(v.x * w.x, v.y * w.y, v.z * w.z);
269 return new Flog.RayTracer.Vector(v.x * w, v.y * w, v.z * w);
307 this.camera = new Flog.RayTracer.Camera(
308 new Flog.RayTracer.Vector(0,0,-5),
309 new Flog.RayTracer.Vector(0,0,1),
310 new Flog.RayTracer.Vector(0,1,0)
312 this.shapes = new Array();
313 this.lights = new Array();
314 this.background = new Flog.RayTracer.Background(new Flog.RayTracer.Color(0,0,0.5), 0.2);
358 new Flog.RayTracer.Material.BaseMaterial(), {
383 new Flog.RayTracer.Material.BaseMaterial(), {
427 var info = new Flog.RayTracer.IntersectionInfo();
479 var info = new Flog.RayTracer.IntersectionInfo();
500 var vU = new Flog.RayTracer.Vector(this.position.y, this.position.z, -this.position.x);
532 this.color = new Flog.RayTracer.Color(0,0,0);
574 var ray = new Flog.RayTracer.Ray(pos, dir.normalize());
667 throw new Error("Scene rendered incorrectly");
682 var best = new Flog.RayTracer.IntersectionInfo();
706 return new Flog.RayTracer.Ray(P, R1);
768 var shadowInfo = new Flog.RayTracer.IntersectionInfo();
771 var shadowRay = new Flog.RayTracer.Ray(info.position, v);
812 var scene = new Flog.RayTracer.Scene();
814 scene.camera = new Flog.RayTracer.Camera(
815 new Flog.RayTracer.Vector(0, 0, -15),
816 new Flog.RayTracer.Vector(-0.2, 0, 5),
817 new Flog.RayTracer.Vector(0, 1, 0)
820 scene.background = new Flog.RayTracer.Background(
821 new Flog.RayTracer.Color(0.5, 0.5, 0.5),
825 var sphere = new Flog.RayTracer.Shape.Sphere(
826 new Flog.RayTracer.Vector(-1.5, 1.5, 2),
828 new Flog.RayTracer.Material.Solid(
829 new Flog.RayTracer.Color(0,0.5,0.5),
837 var sphere1 = new Flog.RayTracer.Shape.Sphere(
838 new Flog.RayTracer.Vector(1, 0.25, 1),
840 new Flog.RayTracer.Material.Solid(
841 new Flog.RayTracer.Color(0.9,0.9,0.9),
849 var plane = new Flog.RayTracer.Shape.Plane(
850 new Flog.RayTracer.Vector(0.1, 0.9, -0.5).normalize(),
852 new Flog.RayTracer.Material.Chessboard(
853 new Flog.RayTracer.Color(1,1,1),
854 new Flog.RayTracer.Color(0,0,0),
866 var light = new Flog.RayTracer.Light(
867 new Flog.RayTracer.Vector(5, 10, -1),
868 new Flog.RayTracer.Color(0.8, 0.8, 0.8)
871 var light1 = new Flog.RayTracer.Light(
872 new Flog.RayTracer.Vector(-3, 5, -15),
873 new Flog.RayTracer.Color(0.8, 0.8, 0.8),
889 var raytracer = new Flog.RayTracer.Engine(