Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fktz008
three.js
提交
2a334e08
T
three.js
项目概览
fktz008
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2a334e08
编写于
5月 16, 2010
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Credit where credit is due.
上级
fa9d346f
变更
31
隐藏空白更改
内联
并排
Showing
31 changed file
with
126 addition
and
0 deletion
+126
-0
examples/geometry/primitives/Cube.js
examples/geometry/primitives/Cube.js
+4
-0
examples/geometry/primitives/Cylinder.js
examples/geometry/primitives/Cylinder.js
+4
-0
examples/geometry/primitives/Plane.js
examples/geometry/primitives/Plane.js
+4
-0
src/Three.js
src/Three.js
+4
-0
src/cameras/Camera.js
src/cameras/Camera.js
+4
-0
src/core/Color.js
src/core/Color.js
+4
-0
src/core/Face3.js
src/core/Face3.js
+4
-0
src/core/Face4.js
src/core/Face4.js
+4
-0
src/core/Geometry.js
src/core/Geometry.js
+4
-0
src/core/Matrix3.js
src/core/Matrix3.js
+5
-0
src/core/Matrix4.js
src/core/Matrix4.js
+5
-0
src/core/Vector2.js
src/core/Vector2.js
+4
-0
src/core/Vector3.js
src/core/Vector3.js
+4
-0
src/core/Vector4.js
src/core/Vector4.js
+4
-0
src/core/Vertex.js
src/core/Vertex.js
+4
-0
src/materials/ColorFillMaterial.js
src/materials/ColorFillMaterial.js
+4
-0
src/materials/ColorStrokeMaterial.js
src/materials/ColorStrokeMaterial.js
+4
-0
src/materials/FaceColorFillMaterial.js
src/materials/FaceColorFillMaterial.js
+4
-0
src/materials/FaceColorStrokeMaterial.js
src/materials/FaceColorStrokeMaterial.js
+4
-0
src/objects/Line.js
src/objects/Line.js
+4
-0
src/objects/Mesh.js
src/objects/Mesh.js
+4
-0
src/objects/Object3D.js
src/objects/Object3D.js
+4
-0
src/objects/Particle.js
src/objects/Particle.js
+4
-0
src/renderers/CanvasRenderer.js
src/renderers/CanvasRenderer.js
+4
-0
src/renderers/GLRenderer.js
src/renderers/GLRenderer.js
+4
-0
src/renderers/Renderer.js
src/renderers/Renderer.js
+4
-0
src/renderers/SVGRenderer.js
src/renderers/SVGRenderer.js
+4
-0
src/renderers/renderables/RenderableFace3.js
src/renderers/renderables/RenderableFace3.js
+4
-0
src/renderers/renderables/RenderableFace4.js
src/renderers/renderables/RenderableFace4.js
+4
-0
src/renderers/renderables/RenderableParticle.js
src/renderers/renderables/RenderableParticle.js
+4
-0
src/scenes/Scene.js
src/scenes/Scene.js
+4
-0
未找到文件。
examples/geometry/primitives/Cube.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
var
Cube
=
function
(
width
,
height
,
depth
)
{
THREE
.
Geometry
.
call
(
this
);
...
...
examples/geometry/primitives/Cylinder.js
浏览文件 @
2a334e08
/**
* @author kile / http://kile.stravaganza.org/
*/
var
Cylinder
=
function
(
numSegs
,
topRad
,
botRad
,
height
,
topOffset
,
botOffset
)
{
THREE
.
Geometry
.
call
(
this
);
...
...
examples/geometry/primitives/Plane.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
var
Plane
=
function
(
width
,
height
)
{
THREE
.
Geometry
.
call
(
this
);
...
...
src/Three.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
var
THREE
=
THREE
||
{}
src/cameras/Camera.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Camera
=
function
(
x
,
y
,
z
)
{
this
.
position
=
new
THREE
.
Vector3
(
x
,
y
,
z
);
...
...
src/core/Color.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Color
=
function
(
hex
)
{
var
_r
,
_g
,
_b
,
_a
,
_hex
;
...
...
src/core/Face3.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Face3
=
function
(
a
,
b
,
c
,
uv
,
normal
,
color
)
{
this
.
a
=
a
;
...
...
src/core/Face4.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Face4
=
function
(
a
,
b
,
c
,
d
,
uv
,
normal
,
color
)
{
this
.
a
=
a
;
...
...
src/core/Geometry.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Geometry
=
function
()
{
this
.
vertices
=
[];
...
...
src/core/Matrix3.js
浏览文件 @
2a334e08
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Matrix3
=
function
()
{
this
.
n11
=
1
;
this
.
n12
=
0
;
this
.
n13
=
0
;
...
...
src/core/Matrix4.js
浏览文件 @
2a334e08
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Matrix4
=
function
()
{
var
x
,
y
,
z
;
...
...
src/core/Vector2.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Vector2
=
function
(
x
,
y
)
{
this
.
x
=
x
||
0
;
...
...
src/core/Vector3.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Vector3
=
function
(
x
,
y
,
z
)
{
this
.
x
=
x
||
0
;
...
...
src/core/Vector4.js
浏览文件 @
2a334e08
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
*/
THREE
.
Vector4
=
function
(
x
,
y
,
z
,
w
)
{
this
.
x
=
x
||
0
;
...
...
src/core/Vertex.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Vertex
=
function
(
position
,
normal
)
{
this
.
position
=
position
||
new
THREE
.
Vector3
();
...
...
src/materials/ColorFillMaterial.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
ColorFillMaterial
=
function
(
hex
,
opacity
)
{
this
.
color
=
new
THREE
.
Color
(
(
opacity
?
(
opacity
*
0xff
)
<<
24
:
0xff000000
)
|
hex
);
...
...
src/materials/ColorStrokeMaterial.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
ColorStrokeMaterial
=
function
(
hex
,
opacity
,
lineWidth
)
{
this
.
lineWidth
=
lineWidth
||
1
;
...
...
src/materials/FaceColorFillMaterial.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
FaceColorFillMaterial
=
function
()
{
this
.
toString
=
function
()
{
...
...
src/materials/FaceColorStrokeMaterial.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
FaceColorStrokeMaterial
=
function
(
lineWidth
)
{
this
.
lineWidth
=
lineWidth
||
1
;
...
...
src/objects/Line.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Line
=
function
(
geometry
,
material
)
{
THREE
.
Object3D
.
call
(
this
,
material
);
...
...
src/objects/Mesh.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Mesh
=
function
(
geometry
,
material
)
{
THREE
.
Object3D
.
call
(
this
,
material
);
...
...
src/objects/Object3D.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Object3D
=
function
(
material
)
{
this
.
position
=
new
THREE
.
Vector3
(
0
,
0
,
0
);
...
...
src/objects/Particle.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Particle
=
function
(
material
)
{
THREE
.
Object3D
.
call
(
this
,
material
);
...
...
src/renderers/CanvasRenderer.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
CanvasRenderer
=
function
()
{
THREE
.
Renderer
.
call
(
this
);
...
...
src/renderers/GLRenderer.js
浏览文件 @
2a334e08
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
*/
/* TODO: Refactoring */
var
GLRenderer
=
Renderer
.
extend
...
...
src/renderers/Renderer.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Renderer
=
function
()
{
var
face3Pool
=
[],
...
...
src/renderers/SVGRenderer.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
SVGRenderer
=
function
()
{
THREE
.
Renderer
.
call
(
this
);
...
...
src/renderers/renderables/RenderableFace3.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
RenderableFace3
=
function
()
{
this
.
v1
=
new
THREE
.
Vector2
();
...
...
src/renderers/renderables/RenderableFace4.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
RenderableFace4
=
function
()
{
this
.
v1
=
new
THREE
.
Vector2
();
...
...
src/renderers/renderables/RenderableParticle.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
RenderableParticle
=
function
()
{
this
.
x
;
...
...
src/scenes/Scene.js
浏览文件 @
2a334e08
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE
.
Scene
=
function
()
{
this
.
objects
=
[];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录