-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphased.sublime-workspace
3488 lines (3488 loc) · 104 KB
/
phased.sublime-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"auto_complete":
{
"selected_items":
[
[
"ha",
"HazardField"
],
[
"update",
"updateGravity"
],
[
"enab",
"enablePhasor"
],
[
"player",
"playerCollision"
],
[
"texture",
"texture2D"
],
[
"phase",
"phasedPass"
],
[
"pha",
"phasedPass"
],
[
"safe",
"safeTheme"
],
[
"sa",
"safeTheme"
],
[
"dire",
"direction"
],
[
"pro",
"prototype"
],
[
"as",
"ASSETS"
],
[
"re",
"resetField"
],
[
"coll",
"collisionCallback"
],
[
"per",
"performance"
],
[
"prog",
"progress"
],
[
"items",
"itemsTotal"
],
[
"amou",
"amountTotal"
],
[
"ite",
"itemsTotal"
],
[
"Object",
"Object3D"
],
[
"resume",
"resumeLevel"
],
[
"P",
"Pedestal"
],
[
"load",
"loadTrigger"
],
[
"mat",
"material"
],
[
"ge",
"geometry"
],
[
"asset",
"assetLoader"
],
[
"hide",
"hideMenu"
],
[
"do",
"doorLevel2"
],
[
"run",
"running"
],
[
"ti",
"timer"
],
[
"retur",
"returnToLobby"
],
[
"restart",
"restartLevel"
],
[
"di",
"dirLight"
],
[
"pi",
"PI_2"
],
[
"door",
"doorEnter"
],
[
"doo",
"doorEnter"
],
[
"PH",
"PHYSED"
],
[
"pos",
"position"
],
[
"add",
"addDynamicBody"
],
[
"PI",
"PI_2"
],
[
"trans",
"transition"
],
[
"buf",
"bufferFull"
],
[
"hid",
"hideGG"
],
[
"cou",
"counter"
],
[
"get",
"getAvg"
],
[
"bu",
"bufferSize"
],
[
"buffer",
"bufferFull"
],
[
"time",
"timeString"
],
[
"pr",
"progress"
],
[
"tran",
"transition"
],
[
"inl",
"inline-block"
],
[
"backgro",
"background-image"
],
[
"wid",
"width"
],
[
"ani",
"animationOut"
],
[
"colldi",
"colliderBack"
],
[
"q",
"quaternion"
],
[
"glass",
"glassMid"
],
[
"po",
"position"
],
[
"ud",
"updateMovementAxis"
],
[
"inn",
"innerHeight"
],
[
"fxAA",
"fxaaPass"
],
[
"Shad",
"shaderPass"
],
[
"com",
"composer"
],
[
"th",
"THREE"
],
[
"aniQ",
"aniQuatB"
],
[
"anim",
"animating"
],
[
"qu",
"quart"
],
[
"orth",
"orthAxis"
],
[
"ssv",
"ssv2"
],
[
"As",
"AssetLoader"
],
[
"ASS",
"ASSETS"
],
[
"ass",
"assetLoader"
],
[
"ca",
"callback"
],
[
"jum",
"jumping"
],
[
"jump",
"jumpCount"
],
[
"ju",
"jumpDuration"
],
[
"jun",
"jumpCount"
],
[
"gaze",
"gazePrev"
],
[
"key",
"keyCode"
],
[
"set",
"setFromAxisAngle"
],
[
"apl",
"applyQuaternion"
],
[
"yA",
"yAxis"
],
[
"quat",
"quaternion"
],
[
"qU",
"Quaternion"
],
[
"zA",
"zAxis"
],
[
"apply",
"applyEuler"
],
[
"gravit",
"gravityNormal"
],
[
"radi",
"radius"
],
[
"Speh",
"SphereCollider"
],
[
"Spher",
"SphereCollider"
],
[
"SP",
"SphereCollider"
],
[
"ac",
"accel"
],
[
"upda",
"updateCollider"
],
[
"sphere",
"sphereCollider"
],
[
"phy",
"PHYSED"
],
[
"sphe",
"sphereCollider"
],
[
"compue",
"computeBoundingSphere"
],
[
"c",
"caabb"
],
[
"inter",
"intersectAxisAABBSphere"
],
[
"in",
"intersect"
],
[
"line",
"lineIntersect"
],
[
"VE",
"Vector3"
],
[
"Th",
"THREE"
],
[
"boun",
"boundingBox"
],
[
"ps",
"position"
],
[
"G",
"GRAVITY_GLOBAL"
],
[
"CLO",
"clock"
],
[
"upd",
"updateBoundingBox"
],
[
"stat",
"statLen"
],
[
"d",
"dynamic"
],
[
"co",
"colours"
]
]
},
"buffers":
[
{
"file": "src/levels/Level3.js",
"settings":
{
"buffer_size": 9229,
"line_ending": "Windows"
}
},
{
"file": "src/assets/AssetLoader.js",
"settings":
{
"buffer_size": 7114,
"line_ending": "Windows"
}
},
{
"file": "src/levels/Level1.js",
"settings":
{
"buffer_size": 9444,
"line_ending": "Windows"
}
},
{
"file": "src/core/UI.js",
"settings":
{
"buffer_size": 7674,
"line_ending": "Windows"
}
},
{
"file": "phased.css",
"settings":
{
"buffer_size": 4452,
"line_ending": "Windows"
}
},
{
"file": "phased.html",
"settings":
{
"buffer_size": 2955,
"line_ending": "Windows"
}
},
{
"file": "src/core/Engine.js",
"settings":
{
"buffer_size": 5375,
"line_ending": "Windows"
}
},
{
"settings":
{
"buffer_size": 0,
"line_ending": "Windows"
}
},
{
"file": "/E/University/Year3/cpsc314/projects/p0/readme.md",
"settings":
{
"buffer_size": 333,
"line_ending": "Windows"
}
},
{
"file": "/E/University/Year3/cpsc314/projects/p1/readme.md",
"settings":
{
"buffer_size": 2602,
"line_ending": "Windows"
}
},
{
"file": "readme.md",
"settings":
{
"buffer_size": 3630,
"line_ending": "Windows"
}
},
{
"contents": "Searching 121 files for \"http\"\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\concept\\annotated.svg:\n 1 <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n 2: <!-- Created with Inkscape (http://www.inkscape.org/) -->\n 3 \n 4 <svg\n 5: xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n 6: xmlns:cc=\"http://creativecommons.org/ns#\"\n 7: xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n 8: xmlns:svg=\"http://www.w3.org/2000/svg\"\n 9: xmlns=\"http://www.w3.org/2000/svg\"\n 10: xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n 11: xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n 12: xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n 13 width=\"338.66666mm\"\n 14 height=\"190.5mm\"\n ..\n 97 <dc:format>image/svg+xml</dc:format>\n 98 <dc:type\n 99: rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\n 100 <dc:title></dc:title>\n 101 </cc:Work>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\phased.html:\n 3 <meta charset=\"UTF-8\">\n 4 <title>PHASED</title>\n 5: <link href='https://fonts.googleapis.com/css?family=Comfortaa|Open+Sans:400,600,300' rel='stylesheet' type='text/css'>\n 6 <link href='phased.css' rel='stylesheet' type='text/css'>\n 7 </head>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\screenshot3.png:\n <binary>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\sources.md:\n 1: http://cpetry.github.io/NormalMap-Online/\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\core\\Engine.js:\n 73 var camera = PHASED.camera = PHASED.player.camera\n 74 \n 75: // https://www.airtightinteractive.com/2013/02/intro-to-pixel-shaders-in-three-js/\n 76 var composer = PHASED.composer = new THREE.EffectComposer(renderer)\n 77 composer.addPass(new THREE.RenderPass(scene, camera))\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\core\\Immersion.js:\n 8 **/\n 9 \n 10: // http://www.html5rocks.com/en/tutorials/pointerlock/intro/\n 11 \n 12 /* global UI */\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\ColladaLoader.js:\n 1 /**\n 2: * @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com\n 3: * @author Tony Parisi / http://www.tonyparisi.com/\n 4 */\n 5 \n .\n 63 if ( document.implementation && document.implementation.createDocument ) {\n 64 \n 65: var request = new XMLHttpRequest();\n 66 \n 67 request.onreadystatechange = function() {\n ..\n 3475 this.texcoord = child.getAttribute('texcoord');\n 3476 // Defaults from:\n 3477: // https://collada.org/mediawiki/index.php/Maya_texture_placement_MAYA_extension\n 3478 this.texOpts = {\n 3479 offsetU: 0,\n ....\n 5045 if ( nsPrefix === \"dae\" ) {\n 5046 \n 5047: return \"http://www.collada.org/2005/11/COLLADASchema\";\n 5048 \n 5049 }\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\Easing.js:\n 1 /* eslint-disable */\n 2 // NOTE: Adpated for use in P1 by Mesbah Mowlavi\n 3: // Source: https://github.com/danro/jquery-easing/blob/master/jquery.easing.js\n 4 \n 5 /* ============================================================\n 6: * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/\n 7 *\n 8 * Open source under the BSD License.\n .\n 10 * Copyright © 2008 George McGinley Smith\n 11 * All rights reserved.\n 12: * https://raw.github.com/danro/jquery-easing/master/LICENSE\n 13 * ======================================================== */\n 14 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\OBJLoader.js:\n 1 /**\n 2: * @author mrdoob / http://mrdoob.com/\n 3 */\n 4 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\OrbitControls.js:\n 1 /**\n 2: * @author qiao / https://github.com/qiao\n 3: * @author mrdoob / http://mrdoob.com\n 4: * @author alteredq / http://alteredqualia.com/\n 5: * @author WestLangley / http://github.com/WestLangley\n 6: * @author erich666 / http://erichaines.com\n 7 */\n 8 /*global THREE, console */\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\postprocessing\\BloomPass.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3 */\n 4 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\postprocessing\\EffectComposer.js:\n 1 /* eslint-disable */\n 2 /**\n 3: * @author alteredq / http://alteredqualia.com/\n 4 */\n 5 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\postprocessing\\MaskPass.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3 */\n 4 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\postprocessing\\RenderPass.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3 */\n 4 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\postprocessing\\ShaderPass.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3 */\n 4 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\shaders\\BlendShader.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3 *\n 4 * Blend two textures\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\shaders\\ConvolutionShader.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3 *\n 4 * Convolution shader\n 5 * ported from o3d sample to WebGL / GLSL\n 6: * http://o3d.googlecode.com/svn/trunk/samples/convolution.html\n 7 */\n 8 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\shaders\\CopyShader.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3 *\n 4 * Full-screen textured quad shader\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\shaders\\FXAAShader.js:\n 1 /**\n 2: * @author alteredq / http://alteredqualia.com/\n 3: * @author davidedc / http://www.sketchpatch.net/\n 4 *\n 5 * NVIDIA FXAA by Timothy Lottes\n 6: * http://timothylottes.blogspot.com/2011/06/fxaa3-source-released.html\n 7 * - WebGL port by @supereggbert\n 8: * http://www.glge.org/demos/fxaa/\n 9 */\n 10 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\shaders\\HorizontalBlurShader.js:\n 1 /**\n 2: * @author zz85 / http://www.lab4games.net/zz85/blog\n 3 *\n 4 * Two pass Gaussian blur filter (horizontal and vertical blur shaders)\n 5: * - described in http://www.gamerendering.com/2008/10/11/gaussian-blur-filter-shader/\n 6: * and used in http://www.cake23.de/traveling-wavefronts-lit-up.html\n 7 *\n 8 * - 9 samples per pass\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\shaders\\VerticalBlurShader.js:\n 1 /**\n 2: * @author zz85 / http://www.lab4games.net/zz85/blog\n 3 *\n 4 * Two pass Gaussian blur filter (horizontal and vertical blur shaders)\n 5: * - described in http://www.gamerendering.com/2008/10/11/gaussian-blur-filter-shader/\n 6: * and used in http://www.cake23.de/traveling-wavefronts-lit-up.html\n 7 *\n 8 * - 9 samples per pass\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\Stats.min.js:\n 1: // stats.js - http://github.com/mrdoob/stats.js\n 2 var Stats=function(){function f(a,e,b){a=document.createElement(a);a.id=e;a.style.cssText=b;return a}function l(a,e,b){var c=f(\"div\",a,\"padding:0 0 3px 3px;text-align:left;background:\"+b),d=f(\"div\",a+\"Text\",\"font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px;color:\"+e);d.innerHTML=a.toUpperCase();c.appendChild(d);a=f(\"div\",a+\"Graph\",\"width:74px;height:30px;background:\"+e);c.appendChild(a);for(e=0;74>e;e++)a.appendChild(f(\"span\",\"\",\"width:1px;height:30px;float:left;opacity:0.9;background:\"+\n 3 b));return c}function m(a){for(var b=c.children,d=0;d<b.length;d++)b[d].style.display=d===a?\"block\":\"none\";n=a}function p(a,b){a.appendChild(a.firstChild).style.height=Math.min(30,30-30*b)+\"px\"}var q=self.performance&&self.performance.now?self.performance.now.bind(performance):Date.now,k=q(),r=k,t=0,n=0,c=f(\"div\",\"stats\",\"width:80px;opacity:0.9;cursor:pointer\");c.addEventListener(\"mousedown\",function(a){a.preventDefault();m(++n%c.children.length)},!1);var d=0,u=Infinity,v=0,b=l(\"fps\",\"#0ff\",\"#002\"),\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\lib\\Three.js:\n 3 \n 4 /**\n 5: * @author mrdoob / http://mrdoob.com/\n 6 */\n 7 \n .\n 32 if ( Math.sign === undefined ) {\n 33 \n 34: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign\n 35 \n 36 Math.sign = function ( x ) {\n ..\n 45 \n 46 // Missing in IE9-11.\n 47: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name\n 48 \n 49 Object.defineProperty( Function.prototype, 'name', {\n ..\n 61 if ( Object.assign === undefined ) {\n 62 \n 63: // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n 64 \n 65 Object.defineProperty( Object, 'assign', {\n ..\n 113 }\n 114 \n 115: // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.button\n 116 \n 117 THREE.MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 };\n ...\n 337 \n 338 /**\n 339: * @author mrdoob / http://mrdoob.com/\n 340 */\n 341 \n ...\n 839 \n 840 /**\n 841: * @author mikael emtinger / http://gomo.se/\n 842: * @author alteredq / http://alteredqualia.com/\n 843: * @author WestLangley / http://github.com/WestLangley\n 844: * @author bhouston / http://clara.io\n 845 */\n 846 \n ...\n 950 }\n 951 \n 952: // http://www.mathworks.com/matlabcentral/fileexchange/\n 953 // 20696-function-to-convert-between-dcm-euler-angles-quaternions-and-euler-vectors/\n 954 // content/SpinCalc.m\n ...\n 1015 setFromAxisAngle: function ( axis, angle ) {\n 1016 \n 1017: // http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm\n 1018 \n 1019 // assumes axis is normalized\n ....\n 1034 setFromRotationMatrix: function ( m ) {\n 1035 \n 1036: // http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm\n 1037 \n 1038 // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)\n ....\n 1093 setFromUnitVectors: function () {\n 1094 \n 1095: // http://lolengine.net/blog/2014/02/24/quaternion-from-two-vectors-final\n 1096 \n 1097 // assumes direction vectors vFrom and vTo are normalized\n ....\n 1221 multiplyQuaternions: function ( a, b ) {\n 1222 \n 1223: // from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm\n 1224 \n 1225 var qax = a._x, qay = a._y, qaz = a._z, qaw = a._w;\n ....\n 1244 var x = this._x, y = this._y, z = this._z, w = this._w;\n 1245 \n 1246: // http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/\n 1247 \n 1248 var cosHalfTheta = w * qb._w + x * qb._x + y * qb._y + z * qb._z;\n ....\n 1425 \n 1426 /**\n 1427: * @author mrdoob / http://mrdoob.com/\n 1428: * @author philogb / http://blog.thejit.org/\n 1429: * @author egraether / http://egraether.com/\n 1430: * @author zz85 / http://www.lab4games.net/zz85/blog\n 1431 */\n 1432 \n ....\n 1905 \n 1906 /**\n 1907: * @author mrdoob / http://mrdoob.com/\n 1908: * @author *kile / http://kile.stravaganza.org/\n 1909: * @author philogb / http://blog.thejit.org/\n 1910: * @author mikael emtinger / http://gomo.se/\n 1911: * @author egraether / http://egraether.com/\n 1912: * @author WestLangley / http://github.com/WestLangley\n 1913 */\n 1914 \n ....\n 2696 \n 2697 /**\n 2698: * @author supereggbert / http://www.paulbrunt.co.uk/\n 2699: * @author philogb / http://blog.thejit.org/\n 2700: * @author mikael emtinger / http://gomo.se/\n 2701: * @author egraether / http://egraether.com/\n 2702: * @author WestLangley / http://github.com/WestLangley\n 2703 */\n 2704 \n ....\n 2954 setAxisAngleFromQuaternion: function ( q ) {\n 2955 \n 2956: // http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/index.htm\n 2957 \n 2958 // q is assumed to be normalized\n ....\n 2982 setAxisAngleFromRotationMatrix: function ( m ) {\n 2983 \n 2984: // http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/index.htm\n 2985 \n 2986 // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)\n ....\n 3330 \n 3331 /**\n 3332: * @author mrdoob / http://mrdoob.com/\n 3333: * @author WestLangley / http://github.com/WestLangley\n 3334: * @author bhouston / http://clara.io\n 3335 */\n 3336 \n ....\n 3658 \n 3659 /**\n 3660: * @author bhouston / http://clara.io\n 3661 */\n 3662 \n ....\n 3787 \n 3788 /**\n 3789: * @author bhouston / http://clara.io\n 3790 */\n 3791 \n ....\n 4026 \n 4027 /**\n 4028: * @author bhouston / http://clara.io\n 4029: * @author WestLangley / http://github.com/WestLangley\n 4030 */\n 4031 \n ....\n 4467 \n 4468 /**\n 4469: * @author alteredq / http://alteredqualia.com/\n 4470: * @author WestLangley / http://github.com/WestLangley\n 4471: * @author bhouston / http://clara.io\n 4472 * @author tschw\n 4473 */\n ....\n 4770 \n 4771 /**\n 4772: * @author mrdoob / http://mrdoob.com/\n 4773: * @author supereggbert / http://www.paulbrunt.co.uk/\n 4774: * @author philogb / http://blog.thejit.org/\n 4775: * @author jordi_ros / http://plattsoft.com\n 4776: * @author D1plo1d / http://github.com/D1plo1d\n 4777: * @author alteredq / http://alteredqualia.com/\n 4778: * @author mikael emtinger / http://gomo.se/\n 4779: * @author timknip / http://www.floorplanner.com/\n 4780: * @author bhouston / http://clara.io\n 4781: * @author WestLangley / http://github.com/WestLangley\n 4782 */\n 4783 \n ....\n 5266 \n 5267 //TODO: make this more efficient\n 5268: //( based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm )\n 5269 \n 5270 return (\n ....\n 5380 getInverse: function ( m, throwOnDegenerate ) {\n 5381 \n 5382: // based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm\n 5383 var te = this.elements,\n 5384 me = m.elements,\n ....\n 5532 makeRotationAxis: function ( axis, angle ) {\n 5533 \n 5534: // Based on http://www.gamedev.net/reference/articles/article1199.asp\n 5535 \n 5536 var c = Math.cos( angle );\n ....\n 5729 \n 5730 /**\n 5731: * @author bhouston / http://clara.io\n 5732 */\n 5733 \n ....\n 5849 return function ( v0, v1, optionalPointOnRay, optionalPointOnSegment ) {\n 5850 \n 5851: // from http://www.geometrictools.com/LibMathematics/Distance/Wm5DistRay3Segment3.cpp\n 5852 // It returns the min distance between the ray and the segment\n 5853 // defined by v0 and v1\n ....\n 6170 return function ( a, b, c, backfaceCulling, optionalTarget ) {\n 6171 \n 6172: // from http://www.geometrictools.com/LibMathematics/Intersection/Wm5IntrRay3Triangle3.cpp\n 6173 \n 6174 edge1.subVectors( b, a );\n ....\n 6265 \n 6266 /**\n 6267: * @author bhouston / http://clara.io\n 6268: * @author mrdoob / http://mrdoob.com/\n 6269 */\n 6270 \n ....\n 6442 \n 6443 /**\n 6444: * @author mrdoob / http://mrdoob.com/\n 6445: * @author alteredq / http://alteredqualia.com/\n 6446: * @author bhouston / http://clara.io\n 6447 */\n 6448 \n ....\n 6625 \n 6626 /**\n 6627: * @author bhouston / http://clara.io\n 6628 */\n 6629 \n ....\n 6827 \n 6828 // compute new normal based on theory here:\n 6829: // http://www.songho.ca/opengl/gl_normaltransform.html\n 6830 var normalMatrix = optionalNormalMatrix || m1.getNormalMatrix( matrix );\n 6831 var newNormal = v1.copy( this.normal ).applyMatrix3( normalMatrix );\n ....\n 6861 \n 6862 /**\n 6863: * @author bhouston / http://clara.io\n 6864: * @author WestLangley / http://github.com/WestLangley\n 6865 *\n 6866: * Ref: https://en.wikipedia.org/wiki/Spherical_coordinate_system\n 6867 *\n 6868 * The poles (phi) are at the positive and negative y axis.\n ....\n 6941 \n 6942 /**\n 6943: * @author alteredq / http://alteredqualia.com/\n 6944: * @author mrdoob / http://mrdoob.com/\n 6945 */\n 6946 \n ....\n 6949 generateUUID: function () {\n 6950 \n 6951: // http://www.broofa.com/Tools/Math.uuid.htm\n 6952 \n 6953 var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split( '' );\n ....\n 6991 \n 6992 // compute euclidian modulo of m % n\n 6993: // https://en.wikipedia.org/wiki/Modulo_operation\n 6994 \n 6995 euclideanModulo: function ( n, m ) {\n ....\n 7007 },\n 7008 \n 7009: // http://en.wikipedia.org/wiki/Smoothstep\n 7010 \n 7011 smoothstep: function ( x, min, max ) {\n ....\n 7118 /**\n 7119 * Spline from Tween.js, slightly optimized (and trashed)\n 7120: * http://sole.github.com/tween.js/examples/05_spline.html\n 7121 *\n 7122: * @author mrdoob / http://mrdoob.com/\n 7123: * @author alteredq / http://alteredqualia.com/\n 7124 */\n 7125 \n ....\n 7296 \n 7297 /**\n 7298: * @author bhouston / http://clara.io\n 7299: * @author mrdoob / http://mrdoob.com/\n 7300 */\n 7301 \n ....\n 7334 \n 7335 // static/instance method to calculate barycentric coordinates\n 7336: // based on: http://www.blackpawn.com/texts/pointinpoly/default.html\n 7337 THREE.Triangle.barycoordFromPoint = function () {\n 7338 \n ....\n 7507 * References:\n 7508 *\n 7509: * http://www.oodesign.com/template-method-pattern.html\n 7510 *\n 7511 * @author tschw\n ....\n 7544 \n 7545 linear_scan: {\n 7546: //- See http://jsperf.com/comparison-to-undefined/3\n 7547 //- slower code:\n 7548 //-\n ....\n 8026 \n 8027 /**\n 8028: * @author alteredq / http://alteredqualia.com/\n 8029 */\n 8030 \n ....\n 8098 \n 8099 /**\n 8100: * https://github.com/mrdoob/eventdispatcher.js/\n 8101 */\n 8102 \n ....\n 8208 \n 8209 /**\n 8210: * @author mrdoob / http://mrdoob.com/\n 8211 */\n 8212 \n ....\n 8256 \n 8257 /**\n 8258: * @author mrdoob / http://mrdoob.com/\n 8259: * @author bhouston / http://clara.io/\n 8260: * @author stephomi / http://stephaneginier.com/\n 8261 */\n 8262 \n ....\n 8394 \n 8395 /**\n 8396: * @author mrdoob / http://mrdoob.com/\n 8397: * @author mikael emtinger / http://gomo.se/\n 8398: * @author alteredq / http://alteredqualia.com/\n 8399: * @author WestLangley / http://github.com/WestLangley\n 8400 * @author elephantatwork / www.elephantatwork.ch\n 8401 */\n ....\n 9118 \n 9119 /**\n 9120: * @author mrdoob / http://mrdoob.com/\n 9121: * @author alteredq / http://alteredqualia.com/\n 9122 */\n 9123 \n ....\n 9180 \n 9181 /**\n 9182: * @author mrdoob / http://mrdoob.com/\n 9183 */\n 9184 \n ....\n 9552 \n 9553 /**\n 9554: * @author benaadams / https://twitter.com/ben_a_adams\n 9555 */\n 9556 \n ....\n 9579 \n 9580 /**\n 9581: * @author benaadams / https://twitter.com/ben_a_adams\n 9582 */\n 9583 \n ....\n 9672 \n 9673 /**\n 9674: * @author benaadams / https://twitter.com/ben_a_adams\n 9675 */\n 9676 \n ....\n 9699 \n 9700 /**\n 9701: * @author benaadams / https://twitter.com/ben_a_adams\n 9702 */\n 9703 \n ....\n 9827 \n 9828 /**\n 9829: * @author mrdoob / http://mrdoob.com/\n 9830: * @author kile / http://kile.stravaganza.org/\n 9831: * @author alteredq / http://alteredqualia.com/\n 9832: * @author mikael emtinger / http://gomo.se/\n 9833: * @author zz85 / http://www.lab4games.net/zz85/blog\n 9834: * @author bhouston / http://clara.io\n 9835 */\n 9836 \n ....\n 10244 \n 10245 // vertex normals weighted by triangle areas\n 10246: // http://www.iquilezles.org/www/articles/normals/normals.htm\n 10247 \n 10248 var vA, vB, vC;\n .....\n 11039 \n 11040 /**\n 11041: * @author mrdoob / http://mrdoob.com/\n 11042 */\n 11043 \n .....\n 11332 \n 11333 /**\n 11334: * @author alteredq / http://alteredqualia.com/\n 11335: * @author mrdoob / http://mrdoob.com/\n 11336 */\n 11337 \n .....\n 12365 \n 12366 /**\n 12367: * @author benaadams / https://twitter.com/ben_a_adams\n 12368 */\n 12369 \n .....\n 12429 \n 12430 /**\n 12431: * @author mrdoob / http://mrdoob.com/\n 12432 */\n 12433 \n .....\n 12462 * Reusable set of Tracks that represent an animation.\n 12463 *\n 12464: * @author Ben Houston / http://clara.io/\n 12465: * @author David Sarno / http://lighthaus.us/\n 12466 */\n 12467 \n .....\n 12639 var animationToMorphTargets = {};\n 12640 \n 12641: // tested with https://regex101.com/ on trick sequences\n 12642 // such flamingo_flyA_003, flamingo_run1_003, crdeath0059\n 12643 var pattern = /^([\\w-]*?)([\\d]+)$/;\n .....\n 12815 *\n 12816 *\n 12817: * @author Ben Houston / http://clara.io/\n 12818: * @author David Sarno / http://lighthaus.us/\n 12819 * @author tschw\n 12820 */\n .....\n 14587 /**\n 14588 * @author tschw\n 14589: * @author Ben Houston / http://clara.io/\n 14590: * @author David Sarno / http://lighthaus.us/\n 14591 */\n 14592 \n .....\n 14752 *\n 14753 *\n 14754: * @author Ben Houston / http://clara.io/\n 14755: * @author David Sarno / http://lighthaus.us/\n 14756 * @author tschw\n 14757 */\n .....\n 15250 *\n 15251 *\n 15252: * @author Ben Houston / http://clara.io/\n 15253: * @author David Sarno / http://lighthaus.us/\n 15254 * @author tschw\n 15255 */\n .....\n 15788 // parentName/parentName/nodeName.property[index]\n 15789 // .bone[Armature.DEF_cog].position\n 15790: // created and tested via https://regex101.com/#javascript\n 15791 \n 15792 var re = /^(([\\w]+\\/)*)([\\w-\\d]+)?(\\.([\\w]+)(\\[([\\w\\d\\[\\]\\_.:\\- ]+)\\])?)?(\\.([\\w.]+)(\\[([\\w\\d\\[\\]\\_. ]+)\\])?)$/;\n .....\n 15901 *\n 15902 *\n 15903: * @author Ben Houston / http://clara.io/\n 15904: * @author David Sarno / http://lighthaus.us/\n 15905 * @author tschw\n 15906 */\n .....\n 16107 *\n 16108 *\n 16109: * @author Ben Houston / http://clara.io/\n 16110: * @author David Sarno / http://lighthaus.us/\n 16111 * @author tschw\n 16112 */\n .....\n 16143 * A Track of numeric keyframe values.\n 16144 *\n 16145: * @author Ben Houston / http://clara.io/\n 16146: * @author David Sarno / http://lighthaus.us/\n 16147 * @author tschw\n 16148 */\n .....\n 16173 * A Track of quaternion keyframe values.\n 16174 *\n 16175: * @author Ben Houston / http://clara.io/\n 16176: * @author David Sarno / http://lighthaus.us/\n 16177 * @author tschw\n 16178 */\n .....\n 16213 *\n 16214 *\n 16215: * @author Ben Houston / http://clara.io/\n 16216: * @author David Sarno / http://lighthaus.us/\n 16217 * @author tschw\n 16218 */\n .....\n 16247 *\n 16248 *\n 16249: * @author Ben Houston / http://clara.io/\n 16250: * @author David Sarno / http://lighthaus.us/\n 16251 * @author tschw\n 16252 */\n .....\n 16274 \n 16275 /**\n 16276: * @author mrdoob / http://mrdoob.com/\n 16277 */\n 16278 \n .....\n 16536 \n 16537 /**\n 16538: * @author mrdoob / http://mrdoob.com/\n 16539 */\n 16540 \n .....\n 16566 \n 16567 /**\n 16568: * @author mrdoob / http://mrdoob.com/\n 16569 */\n 16570 \n .....\n 16581 var scope = this;\n 16582 \n 16583: var request = new XMLHttpRequest();\n 16584 request.open( 'GET', file, true );\n 16585 request.responseType = 'arraybuffer';\n .....\n 16625 \n 16626 /**\n 16627: * @author mrdoob / http://mrdoob.com/\n 16628 */\n 16629 \n .....\n 16713 \n 16714 /**\n 16715: * @author mrdoob / http://mrdoob.com/\n 16716 */\n 16717 \n .....\n 16820 \n 16821 /**\n 16822: * @author mrdoob / http://mrdoob.com/\n 16823: * @author mikael emtinger / http://gomo.se/\n 16824: * @author WestLangley / http://github.com/WestLangley\n 16825 */\n 16826 \n .....\n 16894 * - renders scene into axis-aligned cube\n 16895 *\n 16896: * @author alteredq / http://alteredqualia.com/\n 16897 */\n 16898 \n .....\n 16980 \n 16981 /**\n 16982: * @author alteredq / http://alteredqualia.com/\n 16983 */\n 16984 \n .....\n 17053 \n 17054 /**\n 17055: * @author mrdoob / http://mrdoob.com/\n 17056: * @author greggman / http://games.greggman.com/\n 17057: * @author zz85 / http://www.lab4games.net/zz85/blog\n 17058 */\n 17059 \n .....\n 17083 * Uses Focal Length (in mm) to estimate and set FOV\n 17084 * 35mm (full-frame) camera is used if frame size is not specified;\n 17085: * Formula based on http://www.bobatkins.com/photography/technical/field_of_view.html\n 17086 */\n 17087 \n .....\n 17212 \n 17213 /**\n 17214: * @author mrdoob / http://mrdoob.com/\n 17215 */\n 17216 \n .....\n 17257 \n 17258 // Off-axis stereoscopic effect based on\n 17259: // http://paulbourke.net/stereographics/stereorender/\n 17260 \n 17261 var projectionMatrix = camera.projectionMatrix.clone();\n .....\n 17304 \n 17305 /**\n 17306: * @author mrdoob / http://mrdoob.com/\n 17307: * @author alteredq / http://alteredqualia.com/\n 17308 */\n 17309 \n .....\n 17356 \n 17357 /**\n 17358: * @author mrdoob / http://mrdoob.com/\n 17359 */\n 17360 \n .....\n 17401 \n 17402 /**\n 17403: * @author mrdoob / http://mrdoob.com/\n 17404 */\n 17405 \n .....\n 17420 \n 17421 /**\n 17422: * @author mrdoob / http://mrdoob.com/\n 17423: * @author alteredq / http://alteredqualia.com/\n 17424 */\n 17425 \n .....\n 17457 \n 17458 /**\n 17459: * @author alteredq / http://alteredqualia.com/\n 17460 */\n 17461 \n .....\n 17491 \n 17492 /**\n 17493: * @author mrdoob / http://mrdoob.com/\n 17494 */\n 17495 \n .....\n 17516 \n 17517 // intensity = power per solid angle.\n 17518: // ref: equation (15) from http://www.frostbite.com/wp-content/uploads/2014/11/course_notes_moving_frostbite_to_pbr.pdf\n 17519 return this.intensity * 4 * Math.PI;\n 17520 \n .....\n 17524 \n 17525 // intensity = power per solid angle.\n 17526: // ref: equation (15) from http://www.frostbite.com/wp-content/uploads/2014/11/course_notes_moving_frostbite_to_pbr.pdf\n 17527 this.intensity = power / ( 4 * Math.PI );\n 17528 \n .....\n 17547 \n 17548 /**\n 17549: * @author alteredq / http://alteredqualia.com/\n 17550 */\n 17551 \n .....\n 17578 \n 17579 // intensity = power per solid angle.\n 17580: // ref: equation (17) from http://www.frostbite.com/wp-content/uploads/2014/11/course_notes_moving_frostbite_to_pbr.pdf\n 17581 return this.intensity * Math.PI;\n 17582 \n .....\n 17586 \n 17587 // intensity = power per solid angle.\n 17588: // ref: equation (17) from http://www.frostbite.com/wp-content/uploads/2014/11/course_notes_moving_frostbite_to_pbr.pdf\n 17589 this.intensity = power / Math.PI;\n 17590 \n .....\n 17613 \n 17614 /**\n 17615: * @author mrdoob / http://mrdoob.com/\n 17616 */\n 17617 \n .....\n 17659 \n 17660 /**\n 17661: * @author alteredq / http://alteredqualia.com/\n 17662 */\n 17663 \n .....\n 17960 \n 17961 /**\n 17962: * @author mrdoob / http://mrdoob.com/\n 17963 */\n 17964 \n .....\n 17997 }\n 17998 \n 17999: var request = new XMLHttpRequest();\n 18000 request.overrideMimeType( 'text/plain' );\n 18001 request.open( 'GET', url, true );\n .....\n 18015 } else if ( this.status === 0 ) {\n 18016 \n 18017: // Some browsers return HTTP Status 0 when using non-http protocol\n 18018 // e.g. 'file://' or 'data://'. Handle as success.\n 18019 \n 18020: console.warn( 'THREE.XHRLoader: HTTP Status 0 received.' );\n 18021 \n 18022 if ( onLoad ) onLoad( response );\n .....\n 18086 \n 18087 /**\n 18088: * @author mrdoob / http://mrdoob.com/\n 18089 */\n 18090 \n .....\n 18115 \n 18116 /**\n 18117: * @author mrdoob / http://mrdoob.com/\n 18118 */\n 18119 \n .....\n 18217 \n 18218 /**\n 18219: * @author mrdoob / http://mrdoob.com/\n 18220: * @author alteredq / http://alteredqualia.com/\n 18221 */\n 18222 \n .....\n 18775 \n 18776 /**\n 18777: * @author mrdoob / http://mrdoob.com/\n 18778 */\n 18779 \n .....\n 18848 \n 18849 /**\n 18850: * @author mrdoob / http://mrdoob.com/\n 18851 */\n 18852 \n .....\n 18949 \n 18950 /**\n 18951: * @author mrdoob / http://mrdoob.com/\n 18952 */\n 18953 \n .....\n 19107 \n 19108 /**\n 19109: * @author mrdoob / http://mrdoob.com/\n 19110 */\n 19111 \n .....\n 19729 \n 19730 /**\n 19731: * @author mrdoob / http://mrdoob.com/\n 19732 */\n 19733 \n .....\n 19783 \n 19784 /**\n 19785: * @author mrdoob / http://mrdoob.com/\n 19786 */\n 19787 \n .....\n 19853 \n 19854 /**\n 19855: * @author Nikos M. / https://github.com/foo123/\n 19856 *\n 19857 * Abstract Base class to load generic binary textures formats (rgbe, hdr, ...)\n .....\n 19945 \n 19946 /**\n 19947: * @author mrdoob / http://mrdoob.com/\n 19948 *\n 19949 * Abstract Base class to block based textures loader (dds, pvr, ...)\n .....\n 20083 \n 20084 /**\n 20085: * @author mrdoob / http://mrdoob.com/\n 20086: * @author alteredq / http://alteredqualia.com/\n 20087 */\n 20088 \n .....\n 20384 \n 20385 /**\n 20386: * @author mrdoob / http://mrdoob.com/\n 20387: * @author alteredq / http://alteredqualia.com/\n 20388 *\n 20389 * parameters = {\n .....\n 20451 \n 20452 /**\n 20453: * @author alteredq / http://alteredqualia.com/\n 20454 *\n 20455 * parameters = {\n .....\n 20523 \n 20524 /**\n 20525: * @author mrdoob / http://mrdoob.com/\n 20526: * @author alteredq / http://alteredqualia.com/\n 20527 *\n 20528 * parameters = {\n .....\n 20645 \n 20646 /**\n 20647: * @author mrdoob / http://mrdoob.com/\n 20648: * @author alteredq / http://alteredqualia.com/\n 20649 *\n 20650 * parameters = {\n .....\n 20788 \n 20789 /**\n 20790: * @author mrdoob / http://mrdoob.com/\n 20791: * @author alteredq / http://alteredqualia.com/\n 20792 *\n 20793 * parameters = {\n .....\n 20971 \n 20972 /**\n 20973: * @author WestLangley / http://github.com/WestLangley\n 20974 *\n 20975 * parameters = {\n .....\n 21159 \n 21160 /**\n 21161: * @author mrdoob / http://mrdoob.com/\n 21162: * @author alteredq / http://alteredqualia.com/\n 21163 *\n 21164 * parameters = {\n .....\n 21201 \n 21202 /**\n 21203: * @author mrdoob / http://mrdoob.com/\n 21204 *\n 21205 * parameters = {\n .....\n 21243 \n 21244 /**\n 21245: * @author mrdoob / http://mrdoob.com/\n 21246 */\n 21247 \n .....\n 21313 \n 21314 /**\n 21315: * @author mrdoob / http://mrdoob.com/\n 21316: * @author alteredq / http://alteredqualia.com/\n 21317 *\n 21318 * parameters = {\n .....\n 21382 \n 21383 /**\n 21384: * @author alteredq / http://alteredqualia.com/\n 21385 *\n 21386 * parameters = {\n .....\n 21520 \n 21521 /**\n 21522: * @author mrdoob / http://mrdoob.com/\n 21523 */\n 21524 \n .....\n 21537 \n 21538 /**\n 21539: * @author alteredq / http://alteredqualia.com/\n 21540 *\n 21541 * parameters = {\n .....\n 21591 \n 21592 /**\n 21593: * @author mrdoob / http://mrdoob.com/\n 21594: * @author alteredq / http://alteredqualia.com/\n 21595: * @author szimek / https://github.com/szimek/\n 21596 */\n 21597 \n .....\n 21627 this.premultiplyAlpha = false;\n 21628 this.flipY = true;\n 21629: this.unpackAlignment = 4; // valid values: 1, 2, 4, 8 (see http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml)\n 21630 \n 21631 \n .....\n 21873 \n 21874 /**\n 21875: * @author mrdoob / http://mrdoob.com/\n 21876 */\n 21877 \n .....\n 21890 \n 21891 /**\n 21892: * @author mrdoob / http://mrdoob.com/\n 21893 */\n 21894 \n .....\n 21926 \n 21927 /**\n 21928: * @author alteredq / http://alteredqualia.com/\n 21929 */\n 21930 \n .....\n 21954 \n 21955 /**\n 21956: * @author alteredq / http://alteredqualia.com/\n 21957 */\n 21958 \n .....\n 21977 \n 21978 /**\n 21979: * @author mrdoob / http://mrdoob.com/\n 21980 */\n 21981 \n .....\n 22010 \n 22011 /**\n 22012: * @author mrdoob / http://mrdoob.com/\n 22013 */\n 22014 \n .....\n 22027 \n 22028 /**\n 22029: * @author alteredq / http://alteredqualia.com/\n 22030 */\n 22031 \n .....\n 22160 \n 22161 /**\n 22162: * @author mrdoob / http://mrdoob.com/\n 22163 */\n 22164 \n .....\n 22347 \n 22348 /**\n 22349: * @author mrdoob / http://mrdoob.com/\n 22350 */\n 22351 \n .....\n 22364 \n 22365 /**\n 22366: * @author mrdoob / http://mrdoob.com/\n 22367: * @author alteredq / http://alteredqualia.com/\n 22368: * @author mikael emtinger / http://gomo.se/\n 22369: * @author jonobr1 / http://jonobr1.com/\n 22370 */\n 22371 \n .....\n 22707 \n 22708 /**\n 22709: * @author mikael emtinger / http://gomo.se/\n 22710: * @author alteredq / http://alteredqualia.com/\n 22711: * @author ikerr / http://verold.com\n 22712 */\n 22713 \n .....\n 22738 \n 22739 /**\n 22740: * @author mikael emtinger / http://gomo.se/\n 22741: * @author alteredq / http://alteredqualia.com/\n 22742: * @author michael guerrero / http://realitymeltdown.com\n 22743: * @author ikerr / http://verold.com\n 22744 */\n 22745 \n .....\n 22917 \n 22918 /**\n 22919: * @author mikael emtinger / http://gomo.se/\n 22920: * @author alteredq / http://alteredqualia.com/\n 22921: * @author ikerr / http://verold.com\n 22922 */\n 22923 \n .....\n 23095 \n 23096 /**\n 23097: * @author mikael emtinger / http://gomo.se/\n 23098: * @author alteredq / http://alteredqualia.com/\n 23099: * @author mrdoob / http://mrdoob.com/\n 23100 */\n 23101 \n .....\n 23274 \n 23275 /**\n 23276: * @author mikael emtinger / http://gomo.se/\n 23277: * @author alteredq / http://alteredqualia.com/\n 23278 */\n 23279 \n .....\n 23348 \n 23349 /**\n 23350: * @author mikael emtinger / http://gomo.se/\n 23351: * @author alteredq / http://alteredqualia.com/\n 23352 */\n 23353 \n .....\n 23447 \n 23448 /**\n 23449: * @author mrdoob / http://mrdoob.com/\n 23450 */\n 23451 \n .....\n 23483 \n 23484 /**\n 23485: * @author mrdoob / http://mrdoob.com/\n 23486: * @author alteredq / http://alteredqualia.com/\n 23487 */\n 23488 \n .....\n 23507 \n 23508 /**\n 23509: * @author mrdoob / http://mrdoob.com/\n 23510: * @author alteredq / http://alteredqualia.com/\n 23511 */\n 23512 \n .....\n 24169 * Webgl Shader Library for three.js\n 24170 *\n 24171: * @author alteredq / http://alteredqualia.com/\n 24172: * @author mrdoob / http://mrdoob.com/\n 24173: * @author mikael emtinger / http://gomo.se/\n 24174 */\n 24175 \n .....\n 24368 *\n 24369 * based on SpiderGL shadow map example\n 24370: * http://spidergl.org/example.php?id=6\n 24371 *\n 24372 * originally from\n 24373: * http://www.gamedev.net/topic/442138-packing-a-float-into-a-a8r8g8b8-texture-shader/page__whichpage__1%25EF%25BF%25BD\n 24374 *\n 24375 * see also\n 24376: * http://aras-p.info/blog/2009/07/30/encoding-floats-to-rgba-the-final/\n 24377 */\n 24378 \n .....\n 24405 \n 24406 /**\n 24407: * @author supereggbert / http://www.paulbrunt.co.uk/\n 24408: * @author mrdoob / http://mrdoob.com/\n 24409: * @author alteredq / http://alteredqualia.com/\n 24410: * @author szimek / https://github.com/szimek/\n 24411 */\n 24412 \n .....\n 28006 \n 28007 /**\n 28008: * @author szimek / https://github.com/szimek/\n 28009: * @author alteredq / http://alteredqualia.com/\n 28010: * @author Marius Kintel / https://github.com/kintel\n 28011 */\n 28012 \n .....\n 28094 \n 28095 /**\n 28096: * @author alteredq / http://alteredqualia.com\n 28097 */\n 28098 \n .....\n 28112 \n 28113 /**\n 28114: * @author mrdoob / http://mrdoob.com/\n 28115 */\n 28116 \n .....\n 28179 \n 28180 /**\n 28181: * @author mrdoob / http://mrdoob.com/\n 28182 */\n 28183 \n .....\n 28248 \n 28249 /**\n 28250: * @author mrdoob / http://mrdoob.com/\n 28251 */\n 28252 \n .....\n 28375 \n 28376 /**\n 28377: * @author mrdoob / http://mrdoob.com/\n 28378 */\n 28379 \n .....\n 28521 \n 28522 /**\n 28523: * @author mrdoob / http://mrdoob.com/\n 28524 */\n 28525 \n .....\n 28604 \n 28605 /**\n 28606: * @author mrdoob / http://mrdoob.com/\n 28607 */\n 28608 \n .....\n 29935 \n 29936 /**\n 29937: * @author alteredq / http://alteredqualia.com/\n 29938: * @author mrdoob / http://mrdoob.com/\n 29939 */\n 29940 \n .....\n 30319 \n 30320 /**\n 30321: * @author mrdoob / http://mrdoob.com/\n 30322 */\n 30323 \n .....\n 31045 \n 31046 /**\n 31047: * @author mikael emtinger / http://gomo.se/\n 31048: * @author alteredq / http://alteredqualia.com/\n 31049 */\n 31050 \n .....\n 31522 \n 31523 /**\n 31524: * @author mikael emtinger / http://gomo.se/\n 31525: * @author alteredq / http://alteredqualia.com/\n 31526 */\n 31527 \n .....\n 31896 \n 31897 /**\n 31898: * @author mrdoob / http://mrdoob.com/\n 31899 */\n 31900 \n .....\n 32704 \n 32705 /**\n 32706: * @author zz85 / http://www.lab4games.net/zz85/blog\n 32707 */\n 32708 \n .....\n 32756 \n 32757 /**\n 32758: * @author alteredq / http://alteredqualia.com/\n 32759 */\n 32760 \n .....\n 32799 \n 32800 /**\n 32801: * @author zz85 / http://www.lab4games.net/zz85/blog\n 32802 */\n 32803 \n .....\n 32827 * flipcode.com by John W. Ratcliff // July 22, 2000\n 32828 * See original code and more information here:\n 32829: * http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml\n 32830 *\n 32831 * ported to actionscript by Zevan Rosser\n .....\n 32833 *\n 32834 * ported to javascript by Joshua Koo\n 32835: * http://www.lab4games.net/zz85/blog\n 32836 *\n 32837 */\n .....\n 33475 \n 33476 // Bezier Curves formulas obtained from\n 33477: // http://en.wikipedia.org/wiki/B%C3%A9zier_curve\n 33478 \n 33479 // Quad Bezier Functions\n .....\n 33552 \n 33553 /**\n 33554: * @author zz85 / http://www.lab4games.net/zz85/blog\n 33555 * Extensible curve object\n 33556 *\n .....\n 33840 \n 33841 /**\n 33842: * @author zz85 / http://www.lab4games.net/zz85/blog\n 33843 *\n 33844 **/\n .....\n 34019 \n 34020 /**\n 34021: * @author zz85 / http://www.lab4games.net/zz85/blog\n 34022: * @author mrdoob / http://mrdoob.com/\n 34023 */\n 34024 \n .....\n 34188 \n 34189 /**\n 34190: * @author zz85 / http://www.lab4games.net/zz85/blog\n 34191 * Creates free form 2d path using series of points, lines or curves.\n 34192 *\n .....\n 34916 \n 34917 /**\n 34918: * @author zz85 / http://www.lab4games.net/zz85/blog\n 34919 * Defines a 2d shape plane using paths.\n 34920 **/\n .....\n 35363 \n 35364 /**\n 35365: * @author zz85 https://github.com/zz85\n 35366 *\n 35367 * Centripetal CatmullRom Curve - which is useful for avoiding\n 35368 * cusps and self-intersections in non-uniform catmull rom curves.\n 35369: * http://www.cemyuksel.com/research/catmullrom_param/catmullrom.pdf\n 35370 *\n 35371 * curve.type accepts centripetal(default), chordal and catmullrom\n .....\n 35383 /*\n 35384 Based on an optimized c++ solution in\n 35385: - http://stackoverflow.com/questions/9489736/catmull-rom-curve-with-no-cusps-and-no-self-intersections/\n 35386: - http://ideone.com/NoEbVM\n 35387 \n 35388 This CubicPoly class could be used for reusing some variables and calculations,\n .....\n 35567 \n 35568 /**\n 35569: * @author mrdoob / http://mrdoob.com/\n 35570: * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Cube.as\n 35571 */\n 35572 \n .....\n 35599 \n 35600 /**\n 35601: * @author Mugen87 / https://github.com/Mugen87\n 35602 */\n 35603 \n .....\n 35809 \n 35810 /**\n 35811: * @author benaadams / https://twitter.com/ben_a_adams\n 35812 */\n 35813 \n .....\n 35879 \n 35880 /**\n 35881: * @author Mugen87 / https://github.com/Mugen87\n 35882 */\n 35883 \n .....\n 36176 \n 36177 /**\n 36178: * @author mrdoob / http://mrdoob.com/\n 36179 */\n 36180 \n .....\n 36207 \n 36208 /**\n 36209: * @author WestLangley / http://github.com/WestLangley\n 36210 */\n 36211 \n .....\n 36305 \n 36306 /**\n 36307: * @author zz85 / http://www.lab4games.net/zz85/blog\n 36308 *\n 36309 * Creates extruded geometry from a path shape.\n .....\n 36506 \n 36507 // good reading for geometry algorithms (here: line-line intersection)\n 36508: // http://geomalgorithms.com/a05-_intersect-1.html\n 36509 \n 36510 var v_prev_x = inPt.x - inPrev.x, v_prev_y = inPt.y - inPrev.y;\n .....\n 37012 \n 37013 /**\n 37014: * @author jonobr1 / http://jonobr1.com\n 37015 *\n 37016 * Creates a one-sided polygonal geometry from a path shape. Similar to\n .....\n 37146 \n 37147 /**\n 37148: * @author Mugen87 / https://github.com/Mugen87\n 37149 */\n 37150 \n .....\n 37305 \n 37306 /**\n 37307: * @author astrodud / http://astrodud.isgreat.org/\n 37308: * @author zz85 / https://github.com/zz85\n 37309: * @author bhouston / http://clara.io\n 37310 */\n 37311 \n .....\n 37341 \n 37342 /**\n 37343: * @author mrdoob / http://mrdoob.com/\n 37344: * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as\n 37345 */\n 37346 \n .....\n 37368 \n 37369 /**\n 37370: * @author mrdoob / http://mrdoob.com/\n 37371: * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as\n 37372 */\n 37373 \n .....\n 37467 \n 37468 /**\n 37469: * @author Mugen87 / https://github.com/Mugen87\n 37470 */\n 37471 \n .....\n 37618 \n 37619 /**\n 37620: * @author mrdoob / http://mrdoob.com/\n 37621 */\n 37622 \n .....\n 37647 \n 37648 /**\n 37649: * @author benaadams / https://twitter.com/ben_a_adams\n 37650 * based on THREE.SphereGeometry\n 37651 */\n .....\n 37751 \n 37752 /**\n 37753: * @author zz85 / http://www.lab4games.net/zz85/blog\n 37754: * @author alteredq / http://alteredqualia.com/\n 37755 *\n 37756 * Text = 3D Text\n .....\n 37806 \n 37807 /**\n 37808: * @author Mugen87 / https://github.com/Mugen87\n 37809 */\n 37810 \n .....\n 37936 /**\n 37937 * @author oosmoxiecode\n 37938: * @author mrdoob / http://mrdoob.com/\n 37939: * based on http://code.google.com/p/away3d/source/browse/trunk/fp10/Away3DLite/src/away3dlite/primitives/Torus.as?r=2888\n 37940 */\n 37941 \n .....\n 37964 \n 37965 /**\n 37966: * @author Mugen87 / https://github.com/Mugen87\n 37967 *\n 37968: * see: http://www.blackpawn.com/texts/pqtorus/\n 37969 */\n 37970 THREE.TorusKnotBufferGeometry = function ( radius, tube, tubularSegments, radialSegments, p, q ) {\n .....\n 38162 \n 38163 /**\n 38164: * @author WestLangley / https://github.com/WestLangley\n 38165: * @author zz85 / https://github.com/zz85\n 38166: * @author miningold / https://github.com/miningold\n 38167: * @author jonobr1 / https://github.com/jonobr1\n 38168 *\n 38169 * Modified from the TorusKnotGeometry by @oosmoxiecode\n .....\n 38172 *\n 38173 * Uses parallel transport frames as described in\n 38174: * http://www.cs.indiana.edu/pub/techreports/TR425.pdf\n 38175 */\n 38176 \n .....\n 38470 \n 38471 /**\n 38472: * @author clockworkgeek / https://github.com/clockworkgeek\n 38473: * @author timothypratley / https://github.com/timothypratley\n 38474: * @author WestLangley / http://github.com/WestLangley\n 38475 */\n 38476 \n .....\n 38714 \n 38715 /**\n 38716: * @author Abe Pazos / https://hamoid.com\n 38717 */\n 38718 \n .....\n 38775 \n 38776 /**\n 38777: * @author timothypratley / https://github.com/timothypratley\n 38778 */\n 38779 \n .....\n 38812 \n 38813 /**\n 38814: * @author timothypratley / https://github.com/timothypratley\n 38815 */\n 38816 \n .....\n 38842 \n 38843 /**\n 38844: * @author timothypratley / https://github.com/timothypratley\n 38845 */\n 38846 \n .....\n 38872 \n 38873 /**\n 38874: * @author zz85 / https://github.com/zz85\n 38875 * Parametric Surfaces Geometry\n 38876: * based on the brilliant article by @prideout http://prideout.net/blog/?p=44\n 38877 *\n 38878 * new THREE.ParametricGeometry( parametricFunction, uSegments, ySegements );\n .....\n 38960 \n 38961 /**\n 38962: * @author mrdoob / http://mrdoob.com/\n 38963 */\n 38964 \n .....\n 39145 \n 39146 /**\n 39147: * @author sroucheray / http://sroucheray.org/\n 39148: * @author mrdoob / http://mrdoob.com/\n 39149 */\n 39150 \n .....\n 39181 \n 39182 /**\n 39183: * @author WestLangley / http://github.com/WestLangley\n 39184: * @author zz85 / http://github.com/zz85\n 39185: * @author bhouston / http://clara.io\n 39186 *\n 39187 * Creates an arrow for visualizing directions\n .....\n 39290 \n 39291 /**\n 39292: * @author mrdoob / http://mrdoob.com/\n 39293 */\n 39294 \n .....\n 39367 \n 39368 /**\n 39369: * @author WestLangley / http://github.com/WestLangley\n 39370 */\n 39371 \n .....\n 39400 \n 39401 /**\n 39402: * @author alteredq / http://alteredqualia.com/\n 39403 *\n 39404 * - shows frustum, line of sight and up of the camera\n 39405 * - suitable for fast updates\n 39406 * - based on frustum visualization in lightgl.js shadowmap example\n 39407: * http://evanw.github.com/lightgl.js/tests/shadowmap.html\n 39408 */\n 39409 \n .....\n 39592 \n 39593 /**\n 39594: * @author alteredq / http://alteredqualia.com/\n 39595: * @author mrdoob / http://mrdoob.com/\n 39596: * @author WestLangley / http://github.com/WestLangley\n 39597 */\n 39598 \n .....\n 39678 \n 39679 /**\n 39680: * @author WestLangley / http://github.com/WestLangley\n 39681 * @param object THREE.Mesh whose geometry will be used\n 39682 * @param hex line color\n .....\n 39704 \n 39705 /**\n 39706: * @author mrdoob / http://mrdoob.com/\n 39707: * @author WestLangley / http://github.com/WestLangley\n 39708 */\n 39709 \n .....\n 39817 \n 39818 /**\n 39819: * @author mrdoob / http://mrdoob.com/\n 39820 */\n 39821 \n .....\n 39860 \n 39861 /**\n 39862: * @author alteredq / http://alteredqualia.com/\n 39863: * @author mrdoob / http://mrdoob.com/\n 39864 */\n 39865 \n .....\n 39923 \n 39924 /**\n 39925: * @author alteredq / http://alteredqualia.com/\n 39926: * @author mrdoob / http://mrdoob.com/\n 39927 */\n 39928 \n .....\n 39999 \n 40000 /**\n 40001: * @author Sean Griffin / http://twitter.com/sgrif\n 40002: * @author Michael Guerrero / http://realitymeltdown.com\n 40003: * @author mrdoob / http://mrdoob.com/\n 40004: * @author ikerr / http://verold.com\n 40005 */\n 40006 \n .....\n 40102 \n 40103 /**\n 40104: * @author alteredq / http://alteredqualia.com/\n 40105: * @author mrdoob / http://mrdoob.com/\n 40106: * @author WestLangley / http://github.com/WestLangley\n 40107 */\n 40108 \n .....\n 40167 \n 40168 /**\n 40169: * @author mrdoob / http://mrdoob.com/\n 40170: * @author WestLangley / http://github.com/WestLangley\n 40171 */\n 40172 \n .....\n 40315 \n 40316 /**\n 40317: * @author mrdoob / http://mrdoob.com/\n 40318 */\n 40319 \n .....\n 40335 \n 40336 /**\n 40337: * @author alteredq / http://alteredqualia.com/\n 40338 */\n 40339 \n .....\n 40353 \n 40354 /**\n 40355: * @author alteredq / http://alteredqualia.com/\n 40356 */\n 40357 \n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\physics\\Physed.js:\n 10 \n 11 // Sources:\n 12: // http://www.metanetsoftware.com/technique/tutorialA.html\n 13: // http://www.dtecta.com/papers/jgt98convex.pdf\n 14: // https://www.toptal.com/game/video-game-physics-part-ii-collision-detection-for-solid-objects\n 15: // http://www.dtecta.com/papers/gdc2001depth.pdf\n 16: // http://steve.hollasch.net/cgindex/geometry/ptintet.html\n 17 \n 18 /* global THREE */\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\resources\\concrete\\map.jpg:\n <binary>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\resources\\loading\\spinner.svg:\n 1: <?xml version=\"1.0\" encoding=\"utf-8\"?><svg width='64px' height='64px' xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\" class=\"uil-ring-alt\"><rect x=\"0\" y=\"0\" width=\"100\" height=\"100\" fill=\"none\" class=\"bk\"></rect><circle cx=\"50\" cy=\"50\" r=\"40\" stroke=\"#303038\" fill=\"none\" stroke-width=\"10\" stroke-linecap=\"round\"></circle><circle cx=\"50\" cy=\"50\" r=\"40\" stroke=\"#00cbff\" fill=\"none\" stroke-width=\"6\" stroke-linecap=\"round\"><animate attributeName=\"stroke-dashoffset\" dur=\"2s\" repeatCount=\"indefinite\" from=\"0\" to=\"502\"></animate><animate attributeName=\"stroke-dasharray\" dur=\"2s\" repeatCount=\"indefinite\" values=\"150.6 100.4;1 250;150.6 100.4\"></animate></circle></svg>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\resources\\plainwall\\map.jpg:\n <binary>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\resources\\source\\hud.svg:\n 1 <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n 2: <!-- Created with Inkscape (http://www.inkscape.org/) -->\n 3 \n 4 <svg\n 5: xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n 6: xmlns:cc=\"http://creativecommons.org/ns#\"\n 7: xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n 8: xmlns:svg=\"http://www.w3.org/2000/svg\"\n 9: xmlns=\"http://www.w3.org/2000/svg\"\n 10: xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n 11: xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n 12 width=\"1920\"\n 13 height=\"1080\"\n ..\n 94 <dc:format>image/svg+xml</dc:format>\n 95 <dc:type\n 96: rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\n 97 <dc:title></dc:title>\n 98 </cc:Work>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\resources\\source\\random-dots.svg:\n 1 <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n 2: <!-- Created with Inkscape (http://www.inkscape.org/) -->\n 3 \n 4 <svg\n 5: xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n 6: xmlns:cc=\"http://creativecommons.org/ns#\"\n 7: xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n 8: xmlns:svg=\"http://www.w3.org/2000/svg\"\n 9: xmlns=\"http://www.w3.org/2000/svg\"\n 10: xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n 11: xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n 12 width=\"1024\"\n 13 height=\"1024\"\n ..\n 49 <dc:format>image/svg+xml</dc:format>\n 50 <dc:type\n 51: rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\n 52 <dc:title></dc:title>\n 53 </cc:Work>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\resources\\source\\textures.svg:\n 1 <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n 2: <!-- Created with Inkscape (http://www.inkscape.org/) -->\n 3 \n 4 <svg\n 5: xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n 6: xmlns:cc=\"http://creativecommons.org/ns#\"\n 7: xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n 8: xmlns:svg=\"http://www.w3.org/2000/svg\"\n 9: xmlns=\"http://www.w3.org/2000/svg\"\n 10: xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n 11: xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n 12: xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n 13 width=\"1024\"\n 14 height=\"1024\"\n ..\n 583 <dc:format>image/svg+xml</dc:format>\n 584 <dc:type\n 585: rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\n 586 <dc:title></dc:title>\n 587 </cc:Work>\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\shaders\\field.fs:\n 9 varying vec2 vUV;\n 10 \n 11: // Source: https://www.shadertoy.com/view/MdlXz8\n 12 vec3 fabricWarp (float time) { \n 13 // Position and intensity\n ..\n 40 }\n 41 \n 42: // Source: http://stackoverflow.com/questions/4200224/random-noise-functions-for-glsl\n 43 float rand(vec2 co){\n 44 return fract(sin(dot(co.xy, vec2(12.9898,78.233))) * 43758.5453);\n\nE:\\University\\Year3\\cpsc314\\projects\\p4\\src\\shaders\\phased.fs:\n 7 vec2 center = vec2(0.5, 0.4);\n 8 \n 9: // Original idea: https://www.shadertoy.com/view/ltlGDH\n 10 void main () {\n 11 float time = fTime / 1.5;\n\n453 matches across 32 files\n",
"settings":
{
"buffer_size": 50662,
"line_ending": "Windows",
"name": "Find Results",
"scratch": true
}
},
{
"file": "src/levels/Level2.js",
"settings":
{
"buffer_size": 13174,
"line_ending": "Windows"
}
},
{
"file": "src/assets/Door.js",
"settings":
{
"buffer_size": 7171,
"line_ending": "Windows"
}
},
{
"file": "src/assets/HazardField.js",
"settings":
{
"buffer_size": 3260,
"line_ending": "Windows"
}
}
],
"build_system": "",
"build_system_choices":
[
],
"build_varint": "",
"command_palette":
{
"height": 342.0,
"last_filter": "",
"selected_items":
[
[
"me",
"View: Toggle Menu"
],
[
"key",
"Preferences: Key Bindings - User"
],
[
"sideb",
"View: Toggle Side Bar"
],
[
"sid",
"View: Toggle Open Files in Side Bar"
],
[
"insta",
"Package Control: Install Package"
],
[
"men",
"View: Toggle Menu"
],
[
"format",
"Standard Format: Format current file"
],
[
"lint",
"SublimeLinter: Lint This View"
],
[
"inst",
"Package Control: Install Package"
],
[
"instal",
"Package Control: Install Package"
],
[
"save",
"Project: Save As"
],
[
"add",
"Project: Add Folder"
],
[
"close",
"Project: Close"
],
[
"menu",
"View: Toggle Menu"
],
[
"proj",
"Project: Add Folder"
],
[
"user",
"Preferences: Settings - User"
],
[
"sideba",
"View: Toggle Open Files in Side Bar"
],
[
"install",
"Package Control: Install Package"
]
],
"width": 398.0
},
"console":
{
"height": 126.0,
"history":
[
"import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) "
]
},
"distraction_free":
{
"menu_visible": true,
"show_minimap": false,
"show_open_files": false,
"show_tabs": false,
"side_bar_visible": false,
"status_bar_visible": false
},
"expanded_folders":
[
"/E/University/Year3/cpsc314/projects/p4",
"/E/University/Year3/cpsc314/projects/p4/src",
"/E/University/Year3/cpsc314/projects/p4/src/assets",
"/E/University/Year3/cpsc314/projects/p4/src/core",
"/E/University/Year3/cpsc314/projects/p4/src/levels",
"/E/University/Year3/cpsc314/projects/p4/src/physics",
"/E/University/Year3/cpsc314/projects/p4/src/shaders",
"/E/University/Year3/cpsc314/projects/p4/src/vfx"
],
"file_history":
[
"/E/University/Year3/cpsc314/projects/p4/sources.md",
"/E/University/Year3/cpsc314/projects/p4/phased.html",
"/E/University/Year3/cpsc314/projects/p4/src/levels/Level1.js",
"/E/University/Year3/cpsc314/projects/p4/src/levels/Level2.js",
"/E/University/Year3/cpsc314/projects/p4/src/core/Player.js",
"/E/University/Year3/cpsc314/projects/p4/src/shaders/phased.fs",
"/E/University/Year3/cpsc314/projects/p4/src/vfx/GravityShift.js",
"/E/University/Year3/cpsc314/projects/p4/src/lib/Three.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/AssetLoader.js",
"/E/University/Year3/cpsc314/projects/p4/src/shaders/additive.fs",
"/E/University/Year3/cpsc314/projects/p4/src/shaders/phased.vs",
"/E/University/Year3/cpsc314/projects/p4/src/core/Engine.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/HazardField.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/PhasedEffect.js",
"/E/University/Year3/cpsc314/projects/p4/src/lib/postprocessing/ShaderPass.js",
"/E/University/Year3/cpsc314/projects/p4/src/lib/postprocessing/EffectComposer.js",
"/E/University/Year3/cpsc314/projects/p4/src/core/UI.js",
"/E/University/Year3/cpsc314/projects/p4/src/core/Immersion.js",
"/E/University/Year3/cpsc314/projects/p4/phased.css",
"/E/University/Year3/cpsc314/projects/p4/src/levels/Level3.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/Door.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/Pedestal.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/LightPlate.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/LightPanel.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/Spotlight.js",
"/E/University/Year3/cpsc314/projects/p4/src/physics/Colliders.js",
"/E/University/Year3/cpsc314/projects/p4/src/levels/Sandbox.js",
"/E/University/Year3/cpsc314/projects/p4/concept/entities.blend",
"/E/University/Year3/cpsc314/projects/p4/src/physics/Physed.js",
"/E/Downloads/Temp/untitled-scene.json",
"/E/University/Year3/cpsc314/projects/p4/src/lib/OBJLoader.js",
"/E/University/Year3/cpsc314/projects/p4/src/lib/ColladaLoader.js",
"/E/University/Year3/cpsc314/projects/p4/src/lib/shaders/FXAAShader.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/GlassBarrier.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/Button.js",
"/E/University/Year3/cpsc314/projects/p4/src/shaders/field.fs",
"/C/Users/power/AppData/Local/Temp/Temp1_GLSL-noise.zip/GLSLnoisetest4.frag",
"/E/University/Year3/cpsc314/projects/p4/src/shaders/field.vs",
"/E/University/Year3/cpsc314/projects/p4/src/shaders/additive.vs",
"/E/Downloads/Temp/shieldeffect.shader",
"/E/University/Year3/cpsc314/projects/p4/src/lib/shaders/BlendShader.js",
"/E/University/Year3/cpsc314/projects/p4/src/assets/Receptor.js",
"/E/University/Year3/cpsc314/projects/p2/p2.Ships.js",
"/E/University/Year3/cpsc314/projects/p2/p2.Matrices.js",
"/E/University/Year3/cpsc314/projects/p1/P1.Matrices.js",
"/E/University/Year3/cpsc314/projects/p2/p2.js",
"/E/University/Year3/cpsc314/projects/p1/P1.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/levels/Level1.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/physics/Physed.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/core/Phased.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/levels/Common.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/lib/Three.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/core/Physed.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/engine/phased.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/controls/Player.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/src/levels/Sandbox.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/engine/Player.js",
"/home/powerofm/.config/sublime-text-3/Packages/User/Default (Linux).sublime-keymap",
"/home/powerofm/.config/sublime-text-3/Packages/Default/Default (Linux).sublime-keymap",
"/home/powerofm/.config/sublime-text-3/Packages/Default/Preferences.sublime-settings",
"/home/powerofm/.config/sublime-text-3/Packages/User/Preferences.sublime-settings",
"/home/powerofm/University/Year3/cpsc314/projects/p4/engine/axises.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/levels/test.js",
"/home/powerofm/University/Year3/cpsc314/projects/p4/engine/physed.js",
"/E/University/Year3/cpsc314/Physijs/examples/vehicle.html",
"/C/Users/power/AppData/Roaming/Sublime Text 3/Packages/User/JavaScript.sublime-settings",
"/E/University/Year3/cpsc314/projects/p4/lib/three.js",
"/E/University/Year3/cpsc314/projects/p4/test.js",
"/E/University/Year3/cpsc314/projects/p4/engine/phased.axises.js",
"/E/University/Year3/cpsc314/projects/p4/physed.js",
"/E/University/Year3/cpsc314/projects/p4/phased.js",
"/E/University/Year3/cpsc314/projects/p4/phased.axises.js",
"/E/University/Year3/cpsc314/projects/p4/test.html",
"/E/University/Year3/cpsc314/projects/p1/P1.html",
"/E/University/Year3/cpsc314/projects/p1/js/three.min.js",
"/E/University/Year3/cpsc314/projects/p4/three.js",
"/E/University/Year3/cpsc314/projects/p4/p2.js",
"/C/Users/power/AppData/Roaming/Sublime Text 3/Packages/User/Preferences.sublime-settings"
],
"find":
{
"height": 34.0
},
"find_in_files":
{
"height": 92.0,
"where_history":
[
"E:\\University\\Year3\\cpsc314\\projects\\p4",
"E:\\University\\Year3\\cpsc314\\projects\\p4\\src",
"<project>"
]
},
"find_state":
{
"case_sensitive": false,
"find_history":
[
"http",
"enterPlat",
"dir",
"label",
"doorEnter",
"exitPlat",
"10",
"wallMat30x16",
"105",
"85",
"65",
"45",
"75",
"55",
"35",
"30",
"35",
"90",
"70",
"55.1",
"15.2",
"35",
"[]\n",
"corrMat6x20",
"floorMat6x20",
"floorDMat6x40",
"floorDMat6x20",
"LEVELS.Level1",
"level",
"}",
"safeDirectionTheme",
"directionTheme",
"theme",
"intesnity",
"remove",
"30",
"back",
"playerDeat",
"()\n",
"hazard1",
"hideTimeout",
"this.onItemPro",
"message",
"loading",
"()\n",
"PHASED.Engine.STATE",
"canvas",
"this",
"ImageLoader",
"loader",
"menu",
"loader",
"overlay",
"10",
"Mesh",
"Object3D",
"LightPanel",
"restartLevel",
"restart",
"lightPlate",
"LightPlate",
"JSONLoader",
"chamber",
"level.doorExit",
"menu",
"overlay",
"Clock",
"overlay",
"Overlay",
")\n",
"spotLight",
"LightPlate",
"chamber",
"ColladaLoader",
"ImageLoader",
"TextureLoader",
"performance",
"seconds",
"minutes",
"hours",
"+",
"\"",
" \"",
"HUD.",
"HUD.ui.",
"ui.",
"lobby",
"gg",
"fps",
"font",
"%; ",
"0",
"\">\n",
"2.3",
"3",
"floorMat43x30",
"32",
"floorMat43x30",
"playerExited",
"this.min",
"this.w",
"applyMatrix4",
"this.PI_2",
"Math.PI / 2",
"glassLeft",
"bb",
"GlassBarrier",
"uv",
"createWhiteMaterial",
"gazeBaseQuat",
"CopyShader",
"THREE",
"asdf",
"0.15",
"0.3",
"clone",
"30",
"Texture = f",
"Texture = ",
"Texture",
"this.position",
"this.rotation",
"this.gaze",
"applyQuaternion",
"3d",
"applyMatrix",
"http",
"gravity"
],
"highlight": true,
"in_selection": false,
"preserve_case": false,
"regex": false,
"replace_history":
[
"LEVELS.Level3",
"_timeout",
"PHASED.Engine.state",
"map",
"this.light",
"LightPanel",
"UI.",
"Math.PI_2",
"vUV",
"createMaterial",
"0.25",
"0.5",
"this",
"PHASED.Player.prototype."
],
"reverse": false,
"show_context": true,
"use_buffer2": true,
"whole_word": false,
"wrap": true
},
"groups":
[
{
"selected": 10,
"sheets":
[
{
"buffer": 0,
"file": "src/levels/Level3.js",
"semi_transient": false,
"settings":
{
"buffer_size": 9229,
"regions":
{
},
"selection":
[
[
8371,
8371
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.sublime-syntax",
"tab_size": 2,
"translate_tabs_to_spaces": true
},
"translation.x": 0.0,
"translation.y": 3296.0,
"zoom_level": 1.0
},
"stack_index": 8,
"type": "text"
},
{
"buffer": 1,
"file": "src/assets/AssetLoader.js",
"semi_transient": false,
"settings":
{
"buffer_size": 7114,
"regions":
{
},
"selection":
[
[
7,
120
]
],
"settings":
{