Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
ecd8117e
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,体验更适合开发者的 AI 搜索 >>
提交
ecd8117e
编写于
12月 04, 2020
作者:
G
Garrett Johnson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
this.oldClearColor -> this._oldClearColor
上级
e4702c1b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
21 addition
and
21 deletion
+21
-21
examples/js/postprocessing/BokehPass.js
examples/js/postprocessing/BokehPass.js
+3
-3
examples/js/postprocessing/ClearPass.js
examples/js/postprocessing/ClearPass.js
+3
-3
examples/js/postprocessing/OutlinePass.js
examples/js/postprocessing/OutlinePass.js
+3
-3
examples/js/postprocessing/RenderPass.js
examples/js/postprocessing/RenderPass.js
+3
-3
examples/js/postprocessing/SAOPass.js
examples/js/postprocessing/SAOPass.js
+3
-3
examples/js/postprocessing/SSAARenderPass.js
examples/js/postprocessing/SSAARenderPass.js
+3
-3
examples/js/postprocessing/UnrealBloomPass.js
examples/js/postprocessing/UnrealBloomPass.js
+3
-3
未找到文件。
examples/js/postprocessing/BokehPass.js
浏览文件 @
ecd8117e
...
...
@@ -64,7 +64,7 @@ THREE.BokehPass = function ( scene, camera, params ) {
this
.
fsQuad
=
new
THREE
.
Pass
.
FullScreenQuad
(
this
.
materialBokeh
);
this
.
oldClearColor
=
new
THREE
.
Color
();
this
.
_
oldClearColor
=
new
THREE
.
Color
();
};
...
...
@@ -78,7 +78,7 @@ THREE.BokehPass.prototype = Object.assign( Object.create( THREE.Pass.prototype )
this
.
scene
.
overrideMaterial
=
this
.
materialDepth
;
renderer
.
getClearColor
(
this
.
oldClearColor
);
renderer
.
getClearColor
(
this
.
_
oldClearColor
);
var
oldClearAlpha
=
renderer
.
getClearAlpha
();
var
oldAutoClear
=
renderer
.
autoClear
;
renderer
.
autoClear
=
false
;
...
...
@@ -109,7 +109,7 @@ THREE.BokehPass.prototype = Object.assign( Object.create( THREE.Pass.prototype )
}
this
.
scene
.
overrideMaterial
=
null
;
renderer
.
setClearColor
(
this
.
oldClearColor
);
renderer
.
setClearColor
(
this
.
_
oldClearColor
);
renderer
.
setClearAlpha
(
oldClearAlpha
);
renderer
.
autoClear
=
oldAutoClear
;
...
...
examples/js/postprocessing/ClearPass.js
浏览文件 @
ecd8117e
...
...
@@ -6,7 +6,7 @@ THREE.ClearPass = function ( clearColor, clearAlpha ) {
this
.
clearColor
=
(
clearColor
!==
undefined
)
?
clearColor
:
0x000000
;
this
.
clearAlpha
=
(
clearAlpha
!==
undefined
)
?
clearAlpha
:
0
;
this
.
oldClearColor
=
new
THREE
.
Color
();
this
.
_
oldClearColor
=
new
THREE
.
Color
();
};
...
...
@@ -20,7 +20,7 @@ THREE.ClearPass.prototype = Object.assign( Object.create( THREE.Pass.prototype )
if
(
this
.
clearColor
)
{
renderer
.
getClearColor
(
this
.
oldClearColor
);
renderer
.
getClearColor
(
this
.
_
oldClearColor
);
oldClearAlpha
=
renderer
.
getClearAlpha
();
renderer
.
setClearColor
(
this
.
clearColor
,
this
.
clearAlpha
);
...
...
@@ -32,7 +32,7 @@ THREE.ClearPass.prototype = Object.assign( Object.create( THREE.Pass.prototype )
if
(
this
.
clearColor
)
{
renderer
.
setClearColor
(
this
.
oldClearColor
,
oldClearAlpha
);
renderer
.
setClearColor
(
this
.
_
oldClearColor
,
oldClearAlpha
);
}
...
...
examples/js/postprocessing/OutlinePass.js
浏览文件 @
ecd8117e
...
...
@@ -96,7 +96,7 @@ THREE.OutlinePass = function ( resolution, scene, camera, selectedObjects ) {
this
.
enabled
=
true
;
this
.
needsSwap
=
false
;
this
.
oldClearColor
=
new
THREE
.
Color
();
this
.
_
oldClearColor
=
new
THREE
.
Color
();
this
.
oldClearAlpha
=
1
;
this
.
fsQuad
=
new
THREE
.
Pass
.
FullScreenQuad
(
null
);
...
...
@@ -276,7 +276,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
if
(
this
.
selectedObjects
.
length
>
0
)
{
renderer
.
getClearColor
(
this
.
oldClearColor
);
renderer
.
getClearColor
(
this
.
_
oldClearColor
);
this
.
oldClearAlpha
=
renderer
.
getClearAlpha
();
var
oldAutoClear
=
renderer
.
autoClear
;
...
...
@@ -391,7 +391,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
renderer
.
setRenderTarget
(
readBuffer
);
this
.
fsQuad
.
render
(
renderer
);
renderer
.
setClearColor
(
this
.
oldClearColor
,
this
.
oldClearAlpha
);
renderer
.
setClearColor
(
this
.
_
oldClearColor
,
this
.
oldClearAlpha
);
renderer
.
autoClear
=
oldAutoClear
;
}
...
...
examples/js/postprocessing/RenderPass.js
浏览文件 @
ecd8117e
...
...
@@ -13,7 +13,7 @@ THREE.RenderPass = function ( scene, camera, overrideMaterial, clearColor, clear
this
.
clear
=
true
;
this
.
clearDepth
=
false
;
this
.
needsSwap
=
false
;
this
.
oldClearColor
=
new
THREE
.
Color
();
this
.
_
oldClearColor
=
new
THREE
.
Color
();
};
...
...
@@ -38,7 +38,7 @@ THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype
if
(
this
.
clearColor
)
{
renderer
.
getClearColor
(
this
.
oldClearColor
);
renderer
.
getClearColor
(
this
.
_
oldClearColor
);
oldClearAlpha
=
renderer
.
getClearAlpha
();
renderer
.
setClearColor
(
this
.
clearColor
,
this
.
clearAlpha
);
...
...
@@ -59,7 +59,7 @@ THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype
if
(
this
.
clearColor
)
{
renderer
.
setClearColor
(
this
.
oldClearColor
,
oldClearAlpha
);
renderer
.
setClearColor
(
this
.
_
oldClearColor
,
oldClearAlpha
);
}
...
...
examples/js/postprocessing/SAOPass.js
浏览文件 @
ecd8117e
...
...
@@ -16,7 +16,7 @@ THREE.SAOPass = function ( scene, camera, depthTexture, useNormals, resolution )
this
.
supportsNormalTexture
=
(
useNormals
!==
undefined
)
?
useNormals
:
false
;
this
.
originalClearColor
=
new
THREE
.
Color
();
this
.
oldClearColor
=
new
THREE
.
Color
();
this
.
_
oldClearColor
=
new
THREE
.
Color
();
this
.
oldClearAlpha
=
1
;
this
.
params
=
{
...
...
@@ -192,7 +192,7 @@ THREE.SAOPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ),
}
renderer
.
getClearColor
(
this
.
oldClearColor
);
renderer
.
getClearColor
(
this
.
_
oldClearColor
);
this
.
oldClearAlpha
=
renderer
.
getClearAlpha
();
var
oldAutoClear
=
renderer
.
autoClear
;
renderer
.
autoClear
=
false
;
...
...
@@ -303,7 +303,7 @@ THREE.SAOPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ),
// Rendering SAOPass result on top of previous pass
this
.
renderPass
(
renderer
,
outputMaterial
,
this
.
renderToScreen
?
null
:
readBuffer
);
renderer
.
setClearColor
(
this
.
oldClearColor
,
this
.
oldClearAlpha
);
renderer
.
setClearColor
(
this
.
_
oldClearColor
,
this
.
oldClearAlpha
);
renderer
.
autoClear
=
oldAutoClear
;
},
...
...
examples/js/postprocessing/SSAARenderPass.js
浏览文件 @
ecd8117e
...
...
@@ -21,7 +21,7 @@ THREE.SSAARenderPass = function ( scene, camera, clearColor, clearAlpha ) {
// as we need to clear the buffer in this pass, clearColor must be set to something, defaults to black.
this
.
clearColor
=
(
clearColor
!==
undefined
)
?
clearColor
:
0x000000
;
this
.
clearAlpha
=
(
clearAlpha
!==
undefined
)
?
clearAlpha
:
0
;
this
.
oldClearColor
=
new
THREE
.
Color
();
this
.
_
oldClearColor
=
new
THREE
.
Color
();
if
(
THREE
.
CopyShader
===
undefined
)
console
.
error
(
"
THREE.SSAARenderPass relies on THREE.CopyShader
"
);
...
...
@@ -78,7 +78,7 @@ THREE.SSAARenderPass.prototype = Object.assign( Object.create( THREE.Pass.protot
var
autoClear
=
renderer
.
autoClear
;
renderer
.
autoClear
=
false
;
renderer
.
getClearColor
(
this
.
oldClearColor
);
renderer
.
getClearColor
(
this
.
_
oldClearColor
);
var
oldClearAlpha
=
renderer
.
getClearAlpha
();
var
baseSampleWeight
=
1.0
/
jitterOffsets
.
length
;
...
...
@@ -135,7 +135,7 @@ THREE.SSAARenderPass.prototype = Object.assign( Object.create( THREE.Pass.protot
if
(
this
.
camera
.
clearViewOffset
)
this
.
camera
.
clearViewOffset
();
renderer
.
autoClear
=
autoClear
;
renderer
.
setClearColor
(
this
.
oldClearColor
,
oldClearAlpha
);
renderer
.
setClearColor
(
this
.
_
oldClearColor
,
oldClearAlpha
);
}
...
...
examples/js/postprocessing/UnrealBloomPass.js
浏览文件 @
ecd8117e
...
...
@@ -131,7 +131,7 @@ THREE.UnrealBloomPass = function ( resolution, strength, radius, threshold ) {
this
.
enabled
=
true
;
this
.
needsSwap
=
false
;
this
.
oldClearColor
=
new
THREE
.
Color
();
this
.
_
oldClearColor
=
new
THREE
.
Color
();
this
.
oldClearAlpha
=
1
;
this
.
basic
=
new
THREE
.
MeshBasicMaterial
();
...
...
@@ -185,7 +185,7 @@ THREE.UnrealBloomPass.prototype = Object.assign( Object.create( THREE.Pass.proto
render
:
function
(
renderer
,
writeBuffer
,
readBuffer
,
deltaTime
,
maskActive
)
{
renderer
.
getClearColor
(
this
.
oldClearColor
);
renderer
.
getClearColor
(
this
.
_
oldClearColor
);
this
.
oldClearAlpha
=
renderer
.
getClearAlpha
();
var
oldAutoClear
=
renderer
.
autoClear
;
renderer
.
autoClear
=
false
;
...
...
@@ -273,7 +273,7 @@ THREE.UnrealBloomPass.prototype = Object.assign( Object.create( THREE.Pass.proto
// Restore renderer settings
renderer
.
setClearColor
(
this
.
oldClearColor
,
this
.
oldClearAlpha
);
renderer
.
setClearColor
(
this
.
_
oldClearColor
,
this
.
oldClearAlpha
);
renderer
.
autoClear
=
oldAutoClear
;
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录