Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
c2ecf3b8
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,发现更多精彩内容 >>
未验证
提交
c2ecf3b8
编写于
4月 03, 2020
作者:
M
Mr.doob
提交者:
GitHub
4月 03, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #18987 from WestLangley/dev_helper_type
Helpers: Properly specify the type property
上级
02336376
e0d207b7
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
32 addition
and
4 deletion
+32
-4
examples/jsm/helpers/FaceNormalsHelper.js
examples/jsm/helpers/FaceNormalsHelper.js
+2
-0
examples/jsm/helpers/LightProbeHelper.js
examples/jsm/helpers/LightProbeHelper.js
+2
-0
examples/jsm/helpers/PositionalAudioHelper.js
examples/jsm/helpers/PositionalAudioHelper.js
+2
-0
examples/jsm/helpers/RectAreaLightHelper.js
examples/jsm/helpers/RectAreaLightHelper.js
+2
-2
examples/jsm/helpers/VertexNormalsHelper.js
examples/jsm/helpers/VertexNormalsHelper.js
+2
-0
examples/jsm/helpers/VertexTangentsHelper.js
examples/jsm/helpers/VertexTangentsHelper.js
+2
-0
src/helpers/ArrowHelper.js
src/helpers/ArrowHelper.js
+2
-0
src/helpers/AxesHelper.js
src/helpers/AxesHelper.js
+2
-0
src/helpers/Box3Helper.js
src/helpers/Box3Helper.js
+2
-0
src/helpers/BoxHelper.js
src/helpers/BoxHelper.js
+2
-0
src/helpers/CameraHelper.js
src/helpers/CameraHelper.js
+2
-0
src/helpers/GridHelper.js
src/helpers/GridHelper.js
+2
-0
src/helpers/PlaneHelper.js
src/helpers/PlaneHelper.js
+2
-2
src/helpers/PointLightHelper.js
src/helpers/PointLightHelper.js
+2
-0
src/helpers/PolarGridHelper.js
src/helpers/PolarGridHelper.js
+2
-0
src/helpers/SkeletonHelper.js
src/helpers/SkeletonHelper.js
+2
-0
未找到文件。
examples/jsm/helpers/FaceNormalsHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -54,6 +54,8 @@ function FaceNormalsHelper( object, size, hex, linewidth ) {
LineSegments
.
call
(
this
,
geometry
,
new
LineBasicMaterial
(
{
color
:
color
,
linewidth
:
width
}
)
);
this
.
type
=
'
FaceNormalsHelper
'
;
//
this
.
matrixAutoUpdate
=
false
;
...
...
examples/jsm/helpers/LightProbeHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -106,6 +106,8 @@ function LightProbeHelper( lightProbe, size ) {
Mesh
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
LightProbeHelper
'
;
this
.
onBeforeRender
();
}
...
...
examples/jsm/helpers/PositionalAudioHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -27,6 +27,8 @@ function PositionalAudioHelper( audio, range, divisionsInnerAngle, divisionsOute
Line
.
call
(
this
,
geometry
,
[
materialOuterAngle
,
materialInnerAngle
]
);
this
.
type
=
'
PositionalAudioHelper
'
;
this
.
update
();
}
...
...
examples/jsm/helpers/RectAreaLightHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -18,8 +18,6 @@ import {
function
RectAreaLightHelper
(
light
,
color
)
{
this
.
type
=
'
RectAreaLightHelper
'
;
this
.
light
=
light
;
this
.
color
=
color
;
// optional hardwired color for the helper
...
...
@@ -34,6 +32,8 @@ function RectAreaLightHelper( light, color ) {
Line
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
RectAreaLightHelper
'
;
//
var
positions2
=
[
1
,
1
,
0
,
-
1
,
1
,
0
,
-
1
,
-
1
,
0
,
1
,
1
,
0
,
-
1
,
-
1
,
0
,
1
,
-
1
,
0
];
...
...
examples/jsm/helpers/VertexNormalsHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -53,6 +53,8 @@ function VertexNormalsHelper( object, size, hex, linewidth ) {
LineSegments
.
call
(
this
,
geometry
,
new
LineBasicMaterial
(
{
color
:
color
,
linewidth
:
width
}
)
);
this
.
type
=
'
VertexNormalsHelper
'
;
//
this
.
matrixAutoUpdate
=
false
;
...
...
examples/jsm/helpers/VertexTangentsHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -46,6 +46,8 @@ function VertexTangentsHelper( object, size, hex, linewidth ) {
LineSegments
.
call
(
this
,
geometry
,
new
LineBasicMaterial
(
{
color
:
color
,
linewidth
:
width
}
)
);
this
.
type
=
'
VertexTangentsHelper
'
;
//
this
.
matrixAutoUpdate
=
false
;
...
...
src/helpers/ArrowHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -33,6 +33,8 @@ function ArrowHelper( dir, origin, length, color, headLength, headWidth ) {
Object3D
.
call
(
this
);
this
.
type
=
'
ArrowHelper
'
;
if
(
dir
===
undefined
)
dir
=
new
Vector3
(
0
,
0
,
1
);
if
(
origin
===
undefined
)
origin
=
new
Vector3
(
0
,
0
,
0
);
if
(
length
===
undefined
)
length
=
1
;
...
...
src/helpers/AxesHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -32,6 +32,8 @@ function AxesHelper( size ) {
LineSegments
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
AxesHelper
'
;
}
AxesHelper
.
prototype
=
Object
.
create
(
LineSegments
.
prototype
);
...
...
src/helpers/Box3Helper.js
浏览文件 @
c2ecf3b8
...
...
@@ -29,6 +29,8 @@ function Box3Helper( box, color ) {
LineSegments
.
call
(
this
,
geometry
,
new
LineBasicMaterial
(
{
color
:
color
,
toneMapped
:
false
}
)
);
this
.
type
=
'
Box3Helper
'
;
this
.
geometry
.
computeBoundingSphere
();
}
...
...
src/helpers/BoxHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -26,6 +26,8 @@ function BoxHelper( object, color ) {
LineSegments
.
call
(
this
,
geometry
,
new
LineBasicMaterial
(
{
color
:
color
,
toneMapped
:
false
}
)
);
this
.
type
=
'
BoxHelper
'
;
this
.
matrixAutoUpdate
=
false
;
this
.
update
();
...
...
src/helpers/CameraHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -111,6 +111,8 @@ function CameraHelper( camera ) {
LineSegments
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
CameraHelper
'
;
this
.
camera
=
camera
;
if
(
this
.
camera
.
updateProjectionMatrix
)
this
.
camera
.
updateProjectionMatrix
();
...
...
src/helpers/GridHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -43,6 +43,8 @@ function GridHelper( size, divisions, color1, color2 ) {
LineSegments
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
GridHelper
'
;
}
GridHelper
.
prototype
=
Object
.
assign
(
Object
.
create
(
LineSegments
.
prototype
),
{
...
...
src/helpers/PlaneHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -13,8 +13,6 @@ import { FrontSide, BackSide } from '../constants.js';
function
PlaneHelper
(
plane
,
size
,
hex
)
{
this
.
type
=
'
PlaneHelper
'
;
this
.
plane
=
plane
;
this
.
size
=
(
size
===
undefined
)
?
1
:
size
;
...
...
@@ -29,6 +27,8 @@ function PlaneHelper( plane, size, hex ) {
Line
.
call
(
this
,
geometry
,
new
LineBasicMaterial
(
{
color
:
color
,
toneMapped
:
false
}
)
);
this
.
type
=
'
PlaneHelper
'
;
//
var
positions2
=
[
1
,
1
,
1
,
-
1
,
1
,
1
,
-
1
,
-
1
,
1
,
1
,
1
,
1
,
-
1
,
-
1
,
1
,
1
,
-
1
,
1
];
...
...
src/helpers/PointLightHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -19,6 +19,8 @@ function PointLightHelper( light, sphereSize, color ) {
Mesh
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
PointLightHelper
'
;
this
.
matrix
=
this
.
light
.
matrixWorld
;
this
.
matrixAutoUpdate
=
false
;
...
...
src/helpers/PolarGridHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -86,6 +86,8 @@ function PolarGridHelper( radius, radials, circles, divisions, color1, color2 )
LineSegments
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
PolarGridHelper
'
;
}
PolarGridHelper
.
prototype
=
Object
.
create
(
LineSegments
.
prototype
);
...
...
src/helpers/SkeletonHelper.js
浏览文件 @
c2ecf3b8
...
...
@@ -73,6 +73,8 @@ function SkeletonHelper( object ) {
LineSegments
.
call
(
this
,
geometry
,
material
);
this
.
type
=
'
SkeletonHelper
'
;
this
.
root
=
object
;
this
.
bones
=
bones
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录