Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fktz008
three.js
提交
cbdf46c9
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,发现更多精彩内容 >>
提交
cbdf46c9
编写于
9月 02, 2011
作者:
A
alteredq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed DataTexture class hierarchy.
上级
2603ccf4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
10 deletion
+6
-10
build/Three.js
build/Three.js
+1
-1
src/textures/DataTexture.js
src/textures/DataTexture.js
+5
-9
未找到文件。
build/Three.js
浏览文件 @
cbdf46c9
...
...
@@ -106,7 +106,7 @@ THREE.Texture=function(b,c,e,f,h,k){this.id=THREE.TextureCount++;this.image=b;th
THREE
.
Texture
.
prototype
=
{
constructor
:
THREE
.
Texture
,
clone
:
function
(){
var
b
=
new
THREE
.
Texture
(
this
.
image
,
this
.
mapping
,
this
.
wrapS
,
this
.
wrapT
,
this
.
magFilter
,
this
.
minFilter
);
b
.
offset
.
copy
(
this
.
offset
);
b
.
repeat
.
copy
(
this
.
repeat
);
return
b
}};
THREE
.
TextureCount
=
0
;
THREE
.
MultiplyOperation
=
0
;
THREE
.
MixOperation
=
1
;
THREE
.
CubeReflectionMapping
=
function
(){};
THREE
.
CubeRefractionMapping
=
function
(){};
THREE
.
LatitudeReflectionMapping
=
function
(){};
THREE
.
LatitudeRefractionMapping
=
function
(){};
THREE
.
SphericalReflectionMapping
=
function
(){};
THREE
.
SphericalRefractionMapping
=
function
(){};
THREE
.
UVMapping
=
function
(){};
THREE
.
RepeatWrapping
=
0
;
THREE
.
ClampToEdgeWrapping
=
1
;
THREE
.
MirroredRepeatWrapping
=
2
;
THREE
.
NearestFilter
=
3
;
THREE
.
NearestMipMapNearestFilter
=
4
;
THREE
.
NearestMipMapLinearFilter
=
5
;
THREE
.
LinearFilter
=
6
;
THREE
.
LinearMipMapNearestFilter
=
7
;
THREE
.
LinearMipMapLinearFilter
=
8
;
THREE
.
ByteType
=
9
;
THREE
.
UnsignedByteType
=
10
;
THREE
.
ShortType
=
11
;
THREE
.
UnsignedShortType
=
12
;
THREE
.
IntType
=
13
;
THREE
.
UnsignedIntType
=
14
;
THREE
.
FloatType
=
15
;
THREE
.
AlphaFormat
=
16
;
THREE
.
RGBFormat
=
17
;
THREE
.
RGBAFormat
=
18
;
THREE
.
LuminanceFormat
=
19
;
THREE
.
LuminanceAlphaFormat
=
20
;
THREE
.
DataTexture
=
function
(
b
,
c
,
e
,
f
,
h
,
k
,
j
,
m
,
o
){
THREE
.
Texture
.
call
(
this
,
null
,
h
,
k
,
j
,
m
,
o
);
this
.
image
=
{
data
:
b
,
width
:
c
,
height
:
e
};
this
.
format
=
f
!==
void
0
?
f
:
THREE
.
RGBAFormat
};
THREE
.
DataTexture
.
prototype
=
new
THREE
.
Texture
;
THREE
.
DataTexture
.
prototype
.
constructor
=
THREE
.
DataTexture
;
THREE
.
DataTexture
.
prototype
=
{
clone
:
function
(){
var
b
=
new
THREE
.
DataTexture
(
this
.
data
.
slice
(
0
),
this
.
mapping
,
this
.
wrapS
,
this
.
wrapT
,
this
.
magFilter
,
this
.
minFilter
);
b
.
offset
.
copy
(
this
.
offset
);
b
.
repeat
.
copy
(
this
.
repeat
);
return
b
}
};
THREE
.
Particle
=
function
(
b
){
THREE
.
Object3D
.
call
(
this
);
this
.
materials
=
b
instanceof
Array
?
b
:[
b
]};
THREE
.
Particle
.
prototype
=
new
THREE
.
Object3D
;
THREE
.
Particle
.
prototype
.
constructor
=
THREE
.
Particle
;
THREE
.
DataTexture
.
prototype
.
clone
=
function
(){
var
b
=
new
THREE
.
DataTexture
(
this
.
data
.
slice
(
0
),
this
.
mapping
,
this
.
wrapS
,
this
.
wrapT
,
this
.
magFilter
,
this
.
minFilter
);
b
.
offset
.
copy
(
this
.
offset
);
b
.
repeat
.
copy
(
this
.
repeat
);
return
b
};
THREE
.
Particle
=
function
(
b
){
THREE
.
Object3D
.
call
(
this
);
this
.
materials
=
b
instanceof
Array
?
b
:[
b
]};
THREE
.
Particle
.
prototype
=
new
THREE
.
Object3D
;
THREE
.
Particle
.
prototype
.
constructor
=
THREE
.
Particle
;
THREE
.
ParticleSystem
=
function
(
b
,
c
){
THREE
.
Object3D
.
call
(
this
);
this
.
geometry
=
b
;
this
.
materials
=
c
instanceof
Array
?
c
:[
c
];
this
.
sortParticles
=!
1
};
THREE
.
ParticleSystem
.
prototype
=
new
THREE
.
Object3D
;
THREE
.
ParticleSystem
.
prototype
.
constructor
=
THREE
.
ParticleSystem
;
THREE
.
Line
=
function
(
b
,
c
,
e
){
THREE
.
Object3D
.
call
(
this
);
this
.
geometry
=
b
;
this
.
materials
=
c
instanceof
Array
?
c
:[
c
];
this
.
type
=
e
!=
void
0
?
e
:
THREE
.
LineStrip
};
THREE
.
LineStrip
=
0
;
THREE
.
LinePieces
=
1
;
THREE
.
Line
.
prototype
=
new
THREE
.
Object3D
;
THREE
.
Line
.
prototype
.
constructor
=
THREE
.
Line
;
THREE
.
Mesh
=
function
(
b
,
c
){
THREE
.
Object3D
.
call
(
this
);
this
.
geometry
=
b
;
this
.
materials
=
c
&&
c
.
length
?
c
:[
c
];
this
.
overdraw
=!
1
;
if
(
this
.
geometry
&&
(
this
.
geometry
.
boundingSphere
||
this
.
geometry
.
computeBoundingSphere
(),
this
.
boundRadius
=
b
.
boundingSphere
.
radius
,
this
.
geometry
.
morphTargets
.
length
)){
this
.
morphTargetBase
=-
1
;
this
.
morphTargetForcedOrder
=
[];
this
.
morphTargetInfluences
=
[];
this
.
morphTargetDictionary
=
{};
for
(
var
e
=
0
;
e
<
this
.
geometry
.
morphTargets
.
length
;
e
++
)
this
.
morphTargetInfluences
.
push
(
0
),
this
.
morphTargetDictionary
[
this
.
geometry
.
morphTargets
[
e
].
name
]
=
...
...
src/textures/DataTexture.js
浏览文件 @
cbdf46c9
...
...
@@ -15,17 +15,13 @@ THREE.DataTexture = function ( data, width, height, format, mapping, wrapS, wrap
THREE
.
DataTexture
.
prototype
=
new
THREE
.
Texture
();
THREE
.
DataTexture
.
prototype
.
constructor
=
THREE
.
DataTexture
;
THREE
.
DataTexture
.
prototype
=
{
THREE
.
DataTexture
.
prototype
.
clone
=
function
()
{
clone
:
function
()
{
var
clonedTexture
=
new
THREE
.
DataTexture
(
this
.
data
.
slice
(
0
),
this
.
mapping
,
this
.
wrapS
,
this
.
wrapT
,
this
.
magFilter
,
this
.
minFilter
);
var
clonedTexture
=
new
THREE
.
DataTexture
(
this
.
data
.
slice
(
0
),
this
.
mapping
,
this
.
wrapS
,
this
.
wrapT
,
this
.
magFilter
,
this
.
minFilter
);
clonedTexture
.
offset
.
copy
(
this
.
offset
);
clonedTexture
.
repeat
.
copy
(
this
.
repeat
);
clonedTexture
.
offset
.
copy
(
this
.
offset
);
clonedTexture
.
repeat
.
copy
(
this
.
repeat
);
return
clonedTexture
;
}
return
clonedTexture
;
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录