-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
49 lines (47 loc) · 1.3 KB
/
index.js
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
/**
* Created by eason on 17-4-12.
*/
import {Renderer} from './src/core/renderer'
import {Scene} from './src/scene/scene'
import {Cube,Sphere,Rectangle,Cone,Cylinder,Disk,Hyperboloid,Paraboloid,Cornellbox} from './src/scene/geometry'
import {AreaLight, PointLight, SpotLight} from "./src/scene/light";
import {Camera} from './src/scene/camera'
import {Matte,Mirror,Metal,Glass} from './src/scene/material'
import {UniformColor,Checkerboard,Checkerboard2,Bilerp,Mix,Scale,UV} from './src/scene/texture'
import {Control} from './src/core/control'
import {Matrix,Vector} from './src/utils/matrix';
import {Color} from './src/core/color';
window.Sail = {
Renderer:Renderer,
Scene:Scene,
Cube:Cube,
Sphere:Sphere,
Rectangle:Rectangle,
Cone:Cone,
Cylinder:Cylinder,
Disk:Disk,
Hyperboloid:Hyperboloid,
Paraboloid:Paraboloid,
AreaLight:AreaLight,
PointLight:PointLight,
SpotLight:SpotLight,
Cornellbox:Cornellbox,
Camera:Camera,
Control:Control,
Matte:Matte,
Mirror:Mirror,
Metal:Metal,
Glass:Glass,
UniformColor:UniformColor,
Checkerboard:Checkerboard,
Checkerboard2:Checkerboard2,
Bilerp:Bilerp,
Mix:Mix,
Scale:Scale,
UV:UV,
Color:Color,
Matrix:Matrix,
Vector:Vector
};
window.$V = Matrix;
window.$M = Vector;