Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fktz008
three.js
提交
be9ead22
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,发现更多精彩内容 >>
提交
be9ead22
编写于
2月 16, 2022
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated examples builds.
上级
9a514bf5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
31 deletion
+11
-31
examples/js/animation/CCDIKSolver.js
examples/js/animation/CCDIKSolver.js
+2
-2
examples/js/misc/ProgressiveLightMap.js
examples/js/misc/ProgressiveLightMap.js
+1
-1
examples/js/objects/Reflector.js
examples/js/objects/Reflector.js
+4
-14
examples/js/objects/Refractor.js
examples/js/objects/Refractor.js
+4
-14
未找到文件。
examples/js/animation/CCDIKSolver.js
浏览文件 @
be9ead22
...
...
@@ -179,13 +179,13 @@
if
(
rotationMin
!==
undefined
)
{
link
.
rotation
.
setFromVector3
(
link
.
rotation
.
toVector3
(
_vector
).
max
(
rotationMin
)
);
link
.
rotation
.
setFromVector3
(
_vector
.
setFromEuler
(
link
.
rotation
).
max
(
rotationMin
)
);
}
if
(
rotationMax
!==
undefined
)
{
link
.
rotation
.
setFromVector3
(
link
.
rotation
.
toVector3
(
_vector
).
min
(
rotationMax
)
);
link
.
rotation
.
setFromVector3
(
_vector
.
setFromEuler
(
link
.
rotation
).
min
(
rotationMax
)
);
}
...
...
examples/js/misc/ProgressiveLightMap.js
浏览文件 @
be9ead22
...
...
@@ -315,7 +315,7 @@
};
this
.
blurringPlane
=
new
THREE
.
Mesh
(
new
THREE
.
Plane
Buffer
Geometry
(
1
,
1
),
blurMaterial
);
this
.
blurringPlane
=
new
THREE
.
Mesh
(
new
THREE
.
PlaneGeometry
(
1
,
1
),
blurMaterial
);
this
.
blurringPlane
.
name
=
'
Blurring Plane
'
;
this
.
blurringPlane
.
frustumCulled
=
false
;
this
.
blurringPlane
.
renderOrder
=
0
;
...
...
examples/js/objects/Reflector.js
浏览文件 @
be9ead22
...
...
@@ -12,7 +12,7 @@
const
textureHeight
=
options
.
textureHeight
||
512
;
const
clipBias
=
options
.
clipBias
||
0
;
const
shader
=
options
.
shader
||
Reflector
.
ReflectorShader
;
const
multisample
=
options
.
multisample
||
4
;
//
const
multisample
=
options
.
multisample
!==
undefined
?
options
.
multisample
:
4
;
//
const
reflectorPlane
=
new
THREE
.
Plane
();
const
normal
=
new
THREE
.
Vector3
();
...
...
@@ -26,19 +26,9 @@
const
q
=
new
THREE
.
Vector4
();
const
textureMatrix
=
new
THREE
.
Matrix4
();
const
virtualCamera
=
new
THREE
.
PerspectiveCamera
();
let
renderTarget
;
if
(
multisample
>
0
)
{
renderTarget
=
new
THREE
.
WebGLMultisampleRenderTarget
(
textureWidth
,
textureHeight
);
renderTarget
.
samples
=
multisample
;
}
else
{
renderTarget
=
new
THREE
.
WebGLRenderTarget
(
textureWidth
,
textureHeight
);
}
const
renderTarget
=
new
THREE
.
WebGLRenderTarget
(
textureWidth
,
textureHeight
,
{
samples
:
multisample
}
);
const
material
=
new
THREE
.
ShaderMaterial
(
{
uniforms
:
THREE
.
UniformsUtils
.
clone
(
shader
.
uniforms
),
fragmentShader
:
shader
.
fragmentShader
,
...
...
examples/js/objects/Refractor.js
浏览文件 @
be9ead22
...
...
@@ -12,7 +12,7 @@
const
textureHeight
=
options
.
textureHeight
||
512
;
const
clipBias
=
options
.
clipBias
||
0
;
const
shader
=
options
.
shader
||
Refractor
.
RefractorShader
;
const
multisample
=
options
.
multisample
||
4
;
//
const
multisample
=
options
.
multisample
!==
undefined
?
options
.
multisample
:
4
;
//
const
virtualCamera
=
new
THREE
.
PerspectiveCamera
();
virtualCamera
.
matrixAutoUpdate
=
false
;
...
...
@@ -21,19 +21,9 @@
const
refractorPlane
=
new
THREE
.
Plane
();
const
textureMatrix
=
new
THREE
.
Matrix4
();
// render target
let
renderTarget
;
if
(
multisample
>
0
)
{
renderTarget
=
new
THREE
.
WebGLMultisampleRenderTarget
(
textureWidth
,
textureHeight
);
renderTarget
.
samples
=
multisample
;
}
else
{
renderTarget
=
new
THREE
.
WebGLRenderTarget
(
textureWidth
,
textureHeight
);
}
// material
const
renderTarget
=
new
THREE
.
WebGLRenderTarget
(
textureWidth
,
textureHeight
,
{
samples
:
multisample
}
);
// material
this
.
material
=
new
THREE
.
ShaderMaterial
(
{
uniforms
:
THREE
.
UniformsUtils
.
clone
(
shader
.
uniforms
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录