Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
efd712ac
T
three.js
项目概览
车家大少爷
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
未验证
提交
efd712ac
编写于
8月 15, 2018
作者:
M
Mr.doob
提交者:
GitHub
8月 15, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #14715 from WestLangley/dev-cleanup_lookat
Examples: Avoid new when calling lookAt()
上级
eb5d999b
80b7da24
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
17 addition
and
17 deletion
+17
-17
docs/manual/introduction/Drawing-lines.html
docs/manual/introduction/Drawing-lines.html
+1
-1
examples/canvas_interactive_voxelpainter.html
examples/canvas_interactive_voxelpainter.html
+1
-1
examples/css3d_sprites.html
examples/css3d_sprites.html
+1
-1
examples/misc_animation_authoring.html
examples/misc_animation_authoring.html
+1
-1
examples/misc_controls_transform.html
examples/misc_controls_transform.html
+1
-1
examples/webgl_camera_array.html
examples/webgl_camera_array.html
+1
-1
examples/webgl_interactive_voxelpainter.html
examples/webgl_interactive_voxelpainter.html
+1
-1
examples/webgl_lights_pointlights2.html
examples/webgl_lights_pointlights2.html
+1
-1
examples/webgl_loader_assimp.html
examples/webgl_loader_assimp.html
+1
-1
examples/webgl_loader_collada.html
examples/webgl_loader_collada.html
+1
-1
examples/webgl_loader_collada_kinematics.html
examples/webgl_loader_collada_kinematics.html
+1
-1
examples/webgl_loader_draco.html
examples/webgl_loader_draco.html
+1
-1
examples/webgl_loader_imagebitmap.html
examples/webgl_loader_imagebitmap.html
+1
-1
examples/webgl_loader_sea3d.html
examples/webgl_loader_sea3d.html
+1
-1
examples/webgl_physics_terrain.html
examples/webgl_physics_terrain.html
+1
-1
examples/webgl_postprocessing_unreal_bloom.html
examples/webgl_postprocessing_unreal_bloom.html
+1
-1
examples/webgl_shaders_ocean2.html
examples/webgl_shaders_ocean2.html
+1
-1
未找到文件。
docs/manual/introduction/Drawing-lines.html
浏览文件 @
efd712ac
...
...
@@ -23,7 +23,7 @@ document.body.appendChild( renderer.domElement );
var camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 500 );
camera.position.set( 0, 0, 100 );
camera.lookAt(
new THREE.Vector3( 0, 0, 0 )
);
camera.lookAt(
0, 0, 0
);
var scene = new THREE.Scene();
</code>
...
...
examples/canvas_interactive_voxelpainter.html
浏览文件 @
efd712ac
...
...
@@ -51,7 +51,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
40
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
10000
);
camera
.
position
.
set
(
500
,
800
,
1300
);
camera
.
lookAt
(
new
THREE
.
Vector3
()
);
camera
.
lookAt
(
0
,
0
,
0
);
scene
=
new
THREE
.
Scene
();
scene
.
background
=
new
THREE
.
Color
(
0xf0f0f0
);
...
...
examples/css3d_sprites.html
浏览文件 @
efd712ac
...
...
@@ -59,7 +59,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
75
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
5000
);
camera
.
position
.
set
(
600
,
400
,
1500
);
camera
.
lookAt
(
new
THREE
.
Vector3
()
);
camera
.
lookAt
(
0
,
0
,
0
);
scene
=
new
THREE
.
Scene
();
...
...
examples/misc_animation_authoring.html
浏览文件 @
efd712ac
...
...
@@ -53,7 +53,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
70
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
3000
);
camera
.
position
.
set
(
1000
,
500
,
1000
);
camera
.
lookAt
(
new
THREE
.
Vector3
(
0
,
200
,
0
)
);
camera
.
lookAt
(
0
,
200
,
0
);
scene
=
new
THREE
.
Scene
();
scene
.
add
(
new
THREE
.
GridHelper
(
1000
,
10
)
);
...
...
examples/misc_controls_transform.html
浏览文件 @
efd712ac
...
...
@@ -51,7 +51,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
70
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
3000
);
camera
.
position
.
set
(
1000
,
500
,
1000
);
camera
.
lookAt
(
new
THREE
.
Vector3
(
0
,
200
,
0
)
);
camera
.
lookAt
(
0
,
200
,
0
);
scene
=
new
THREE
.
Scene
();
scene
.
add
(
new
THREE
.
GridHelper
(
1000
,
10
)
);
...
...
examples/webgl_camera_array.html
浏览文件 @
efd712ac
...
...
@@ -42,7 +42,7 @@
subcamera
.
position
.
y
=
0.5
-
(
y
/
AMOUNT
);
subcamera
.
position
.
z
=
1.5
;
subcamera
.
position
.
multiplyScalar
(
2
);
subcamera
.
lookAt
(
new
THREE
.
Vector3
()
);
subcamera
.
lookAt
(
0
,
0
,
0
);
subcamera
.
updateMatrixWorld
();
cameras
.
push
(
subcamera
);
...
...
examples/webgl_interactive_voxelpainter.html
浏览文件 @
efd712ac
...
...
@@ -59,7 +59,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
45
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
10000
);
camera
.
position
.
set
(
500
,
800
,
1300
);
camera
.
lookAt
(
new
THREE
.
Vector3
()
);
camera
.
lookAt
(
0
,
0
,
0
);
scene
=
new
THREE
.
Scene
();
scene
.
background
=
new
THREE
.
Color
(
0xf0f0f0
);
...
...
examples/webgl_lights_pointlights2.html
浏览文件 @
efd712ac
...
...
@@ -67,7 +67,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
50
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
300
);
camera
.
position
.
set
(
0
,
15
,
150
);
camera
.
lookAt
(
new
THREE
.
Vector3
()
);
camera
.
lookAt
(
0
,
0
,
0
);
// SCENE
...
...
examples/webgl_loader_assimp.html
浏览文件 @
efd712ac
...
...
@@ -70,7 +70,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
25
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
10000
);
camera
.
position
.
set
(
600
,
1150
,
5
);
camera
.
up
.
set
(
0
,
0
,
1
);
camera
.
lookAt
(
new
THREE
.
Vector3
(
-
100
,
0
,
0
)
);
camera
.
lookAt
(
-
100
,
0
,
0
);
scene
=
new
THREE
.
Scene
();
...
...
examples/webgl_loader_collada.html
浏览文件 @
efd712ac
...
...
@@ -58,7 +58,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
45
,
window
.
innerWidth
/
window
.
innerHeight
,
0.1
,
2000
);
camera
.
position
.
set
(
8
,
10
,
8
);
camera
.
lookAt
(
new
THREE
.
Vector3
(
0
,
3
,
0
)
);
camera
.
lookAt
(
0
,
3
,
0
);
scene
=
new
THREE
.
Scene
();
...
...
examples/webgl_loader_collada_kinematics.html
浏览文件 @
efd712ac
...
...
@@ -212,7 +212,7 @@
camera
.
position
.
y
=
10
;
camera
.
position
.
z
=
Math
.
sin
(
timer
)
*
20
;
camera
.
lookAt
(
new
THREE
.
Vector3
(
0
,
5
,
0
)
);
camera
.
lookAt
(
0
,
5
,
0
);
particleLight
.
position
.
x
=
Math
.
sin
(
timer
*
4
)
*
3009
;
particleLight
.
position
.
y
=
Math
.
cos
(
timer
*
5
)
*
4000
;
...
...
examples/webgl_loader_draco.html
浏览文件 @
efd712ac
...
...
@@ -130,7 +130,7 @@
camera
.
position
.
x
=
Math
.
sin
(
timer
)
*
0.5
;
camera
.
position
.
z
=
Math
.
cos
(
timer
)
*
0.5
;
camera
.
lookAt
(
new
THREE
.
Vector3
(
0
,
0.1
,
0
)
);
camera
.
lookAt
(
0
,
0.1
,
0
);
renderer
.
render
(
scene
,
camera
);
...
...
examples/webgl_loader_imagebitmap.html
浏览文件 @
efd712ac
...
...
@@ -103,7 +103,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
30
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
1500
);
camera
.
position
.
set
(
0
,
4
,
7
);
camera
.
lookAt
(
new
THREE
.
Vector3
()
);
camera
.
lookAt
(
0
,
0
,
0
);
// SCENE
...
...
examples/webgl_loader_sea3d.html
浏览文件 @
efd712ac
...
...
@@ -110,7 +110,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
45
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
10000
);
camera
.
position
.
set
(
1000
,
1000
,
1000
);
camera
.
lookAt
(
new
THREE
.
Vector3
()
);
camera
.
lookAt
(
0
,
0
,
0
);
controls
=
new
THREE
.
OrbitControls
(
camera
);
...
...
examples/webgl_physics_terrain.html
浏览文件 @
efd712ac
...
...
@@ -124,7 +124,7 @@
camera
.
position
.
y
=
heightData
[
terrainHalfWidth
+
terrainHalfDepth
*
terrainWidth
]
*
(
terrainMaxHeight
-
terrainMinHeight
)
+
5
;
camera
.
position
.
z
=
terrainDepthExtents
/
2
;
camera
.
lookAt
(
new
THREE
.
Vector3
(
0
,
0
,
0
)
);
camera
.
lookAt
(
0
,
0
,
0
);
controls
=
new
THREE
.
OrbitControls
(
camera
);
...
...
examples/webgl_postprocessing_unreal_bloom.html
浏览文件 @
efd712ac
...
...
@@ -93,7 +93,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
40
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
100
);
camera
.
position
.
set
(
-
5
,
2.5
,
-
3.5
);
camera
.
lookAt
(
new
THREE
.
Vector3
(
0
,
0
,
0
)
);
camera
.
lookAt
(
0
,
0
,
0
);
controls
=
new
THREE
.
OrbitControls
(
camera
,
renderer
.
domElement
);
controls
.
maxPolarAngle
=
Math
.
PI
*
0.5
;
...
...
examples/webgl_shaders_ocean2.html
浏览文件 @
efd712ac
...
...
@@ -80,7 +80,7 @@
this
.
ms_Camera
=
new
THREE
.
PerspectiveCamera
(
55.0
,
window
.
innerWidth
/
window
.
innerHeight
,
0.5
,
300000
);
this
.
ms_Camera
.
position
.
set
(
450
,
350
,
450
);
this
.
ms_Camera
.
lookAt
(
new
THREE
.
Vector3
()
);
this
.
ms_Camera
.
lookAt
(
0
,
0
,
0
);
// Initialize Orbit control
this
.
ms_Controls
=
new
THREE
.
OrbitControls
(
this
.
ms_Camera
,
this
.
ms_Renderer
.
domElement
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录