Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
a598c8ea
T
three.js
项目概览
Ablesons
/
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,发现更多精彩内容 >>
提交
a598c8ea
编写于
7月 26, 2017
作者:
W
WestLangley
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Simplify CubeCamera method names
上级
a37edbfd
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
19 addition
and
9 deletion
+19
-9
docs/api/cameras/CubeCamera.html
docs/api/cameras/CubeCamera.html
+3
-3
examples/webgl_materials_cubemap_dynamic.html
examples/webgl_materials_cubemap_dynamic.html
+1
-1
examples/webgl_materials_cubemap_dynamic2.html
examples/webgl_materials_cubemap_dynamic2.html
+2
-2
examples/webgl_shading_physical.html
examples/webgl_shading_physical.html
+1
-1
src/Three.Legacy.js
src/Three.Legacy.js
+10
-0
src/cameras/CubeCamera.js
src/cameras/CubeCamera.js
+2
-2
未找到文件。
docs/api/cameras/CubeCamera.html
浏览文件 @
a598c8ea
...
...
@@ -32,7 +32,7 @@
//Update the render target cube
car.setVisible( false );
cubeCamera.position.copy( car.position );
cubeCamera.update
CubeMap
( renderer, scene );
cubeCamera.update( renderer, scene );
//Render the scene
car.setVisible( true );
...
...
@@ -67,7 +67,7 @@
<div>
See the base [page:Object3D] class for common methods.
</div>
<h3>
[method:null update
CubeMap
]( [page:WebGLRenderer renderer], [page:Scene scene] )
</h3>
<h3>
[method:null update]( [page:WebGLRenderer renderer], [page:Scene scene] )
</h3>
<div>
renderer -- The current WebGL renderer
<br
/>
scene -- The current scene
...
...
@@ -76,7 +76,7 @@
Call this to update the [page:CubeCamera.renderTarget renderTarget].
</div>
<h3>
[method:null clear
CubeMap
]( [page:Boolean color], [page:Boolean depth], [page:Boolean stencil] )
</h3>
<h3>
[method:null clear]( [page:Boolean color], [page:Boolean depth], [page:Boolean stencil] )
</h3>
<div>
Call this to clear the [page:CubeCamera.renderTarget renderTarget] color, depth, and/or stencil buffers.
The color buffer is set to the renderer's current clear color. Arguments default to *true*.
...
...
examples/webgl_materials_cubemap_dynamic.html
浏览文件 @
a598c8ea
...
...
@@ -961,7 +961,7 @@
cubeCamera
.
position
.
copy
(
currentCar
.
root
.
position
);
renderer
.
autoClear
=
true
;
cubeCamera
.
update
CubeMap
(
renderer
,
scene
);
cubeCamera
.
update
(
renderer
,
scene
);
veyron
.
setVisible
(
true
);
gallardo
.
setVisible
(
true
);
...
...
examples/webgl_materials_cubemap_dynamic2.html
浏览文件 @
a598c8ea
...
...
@@ -191,12 +191,12 @@
if
(
count
%
2
===
0
)
{
material
.
envMap
=
cubeCamera1
.
renderTarget
.
texture
;
cubeCamera2
.
update
CubeMap
(
renderer
,
scene
);
cubeCamera2
.
update
(
renderer
,
scene
);
}
else
{
material
.
envMap
=
cubeCamera2
.
renderTarget
.
texture
;
cubeCamera1
.
update
CubeMap
(
renderer
,
scene
);
cubeCamera1
.
update
(
renderer
,
scene
);
}
...
...
examples/webgl_shading_physical.html
浏览文件 @
a598c8ea
...
...
@@ -392,7 +392,7 @@
// render cube map
mesh
.
visible
=
false
;
cubeCamera
.
update
CubeMap
(
renderer
,
scene
);
cubeCamera
.
update
(
renderer
,
scene
);
mesh
.
visible
=
true
;
// render scene
...
...
src/Three.Legacy.js
浏览文件 @
a598c8ea
...
...
@@ -66,6 +66,7 @@ import { WebGLRenderer } from './renderers/WebGLRenderer.js';
import
{
WebGLRenderTarget
}
from
'
./renderers/WebGLRenderTarget.js
'
;
import
{
WebGLShadowMap
}
from
'
./renderers/webgl/WebGLShadowMap.js
'
;
import
{
Shape
}
from
'
./extras/core/Shape.js
'
;
import
{
CubeCamera
}
from
'
./cameras/CubeCamera.js
'
;
export
{
BoxGeometry
as
CubeGeometry
};
...
...
@@ -1426,6 +1427,15 @@ AudioAnalyser.prototype.getData = function () {
//
CubeCamera
.
prototype
.
updateCubeMap
=
function
(
renderer
,
scene
)
{
console
.
warn
(
'
THREE.CubeCamera: .updateCubeMap() is now .update().
'
);
return
this
.
update
(
renderer
,
scene
);
};
//
export
var
GeometryUtils
=
{
merge
:
function
(
geometry1
,
geometry2
,
materialIndexOffset
)
{
...
...
src/cameras/CubeCamera.js
浏览文件 @
a598c8ea
...
...
@@ -54,7 +54,7 @@ function CubeCamera( near, far, cubeResolution ) {
this
.
renderTarget
=
new
WebGLRenderTargetCube
(
cubeResolution
,
cubeResolution
,
options
);
this
.
renderTarget
.
texture
.
name
=
"
CubeCamera
"
;
this
.
update
CubeMap
=
function
(
renderer
,
scene
)
{
this
.
update
=
function
(
renderer
,
scene
)
{
if
(
this
.
parent
===
null
)
this
.
updateMatrixWorld
();
...
...
@@ -87,7 +87,7 @@ function CubeCamera( near, far, cubeResolution ) {
};
this
.
clear
CubeMap
=
function
(
color
,
depth
,
stencil
)
{
this
.
clear
=
function
(
color
,
depth
,
stencil
)
{
var
renderTarget
=
this
.
renderTarget
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录