Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
96ad1179
T
three.js
项目概览
车家大少爷
/
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,发现更多精彩内容 >>
提交
96ad1179
编写于
1月 03, 2014
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed physicallyBasedShading from examples and documentation.
上级
e3ba5fe7
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
16 addition
and
53 deletion
+16
-53
docs/api/renderers/WebGLRenderer.html
docs/api/renderers/WebGLRenderer.html
+0
-5
examples/webgl_animation_cloth.html
examples/webgl_animation_cloth.html
+0
-1
examples/webgl_animation_skinning_morph.html
examples/webgl_animation_skinning_morph.html
+0
-1
examples/webgl_buffergeometry.html
examples/webgl_buffergeometry.html
+0
-1
examples/webgl_buffergeometry_lines.html
examples/webgl_buffergeometry_lines.html
+0
-1
examples/webgl_lensflares.html
examples/webgl_lensflares.html
+0
-1
examples/webgl_lights_hemisphere.html
examples/webgl_lights_hemisphere.html
+0
-1
examples/webgl_lights_pointlights2.html
examples/webgl_lights_pointlights2.html
+0
-1
examples/webgl_loader_ctm.html
examples/webgl_loader_ctm.html
+0
-1
examples/webgl_loader_ctm_materials.html
examples/webgl_loader_ctm_materials.html
+0
-1
examples/webgl_loader_ply.html
examples/webgl_loader_ply.html
+0
-1
examples/webgl_loader_scene.html
examples/webgl_loader_scene.html
+0
-1
examples/webgl_loader_stl.html
examples/webgl_loader_stl.html
+0
-1
examples/webgl_loader_utf8.html
examples/webgl_loader_utf8.html
+0
-1
examples/webgl_marchingcubes.html
examples/webgl_marchingcubes.html
+0
-1
examples/webgl_materials2.html
examples/webgl_materials2.html
+0
-1
examples/webgl_materials_bumpmap.html
examples/webgl_materials_bumpmap.html
+0
-1
examples/webgl_materials_bumpmap_skin.html
examples/webgl_materials_bumpmap_skin.html
+0
-1
examples/webgl_materials_lightmap.html
examples/webgl_materials_lightmap.html
+0
-1
examples/webgl_materials_normalmap.html
examples/webgl_materials_normalmap.html
+0
-1
examples/webgl_materials_normalmap2.html
examples/webgl_materials_normalmap2.html
+0
-1
examples/webgl_performance_doublesided.html
examples/webgl_performance_doublesided.html
+16
-27
examples/webgl_shading_physical.html
examples/webgl_shading_physical.html
+0
-1
未找到文件。
docs/api/renderers/WebGLRenderer.html
浏览文件 @
96ad1179
...
...
@@ -87,11 +87,6 @@
<div>
Default is false. TODO
</div>
<h3>
.[page:Boolean physicallyBasedShading]
</h3>
<div>
Default is false. TODO
</div>
<h3>
.[page:Boolean shadowMapEnabled]
</h3>
<div>
Default is false. TODO
</div>
...
...
examples/webgl_animation_cloth.html
浏览文件 @
96ad1179
...
...
@@ -298,7 +298,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
renderer
.
shadowMapEnabled
=
true
;
...
...
examples/webgl_animation_skinning_morph.html
浏览文件 @
96ad1179
...
...
@@ -141,7 +141,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
renderer
.
shadowMapEnabled
=
true
;
...
...
examples/webgl_buffergeometry.html
浏览文件 @
96ad1179
...
...
@@ -234,7 +234,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
container
.
appendChild
(
renderer
.
domElement
);
...
...
examples/webgl_buffergeometry_lines.html
浏览文件 @
96ad1179
...
...
@@ -109,7 +109,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
container
.
appendChild
(
renderer
.
domElement
);
...
...
examples/webgl_lensflares.html
浏览文件 @
96ad1179
...
...
@@ -179,7 +179,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
// stats
...
...
examples/webgl_lights_hemisphere.html
浏览文件 @
96ad1179
...
...
@@ -232,7 +232,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
renderer
.
shadowMapEnabled
=
true
;
renderer
.
shadowMapCullFace
=
THREE
.
CullFaceBack
;
...
...
examples/webgl_lights_pointlights2.html
浏览文件 @
96ad1179
...
...
@@ -228,7 +228,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
// STATS
...
...
examples/webgl_loader_ctm.html
浏览文件 @
96ad1179
...
...
@@ -125,7 +125,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
renderer
.
shadowMapEnabled
=
true
;
...
...
examples/webgl_loader_ctm_materials.html
浏览文件 @
96ad1179
...
...
@@ -158,7 +158,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
// STATS
...
...
examples/webgl_loader_ply.html
浏览文件 @
96ad1179
...
...
@@ -121,7 +121,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
renderer
.
shadowMapEnabled
=
true
;
renderer
.
shadowMapCullFace
=
THREE
.
CullFaceBack
;
...
...
examples/webgl_loader_scene.html
浏览文件 @
96ad1179
...
...
@@ -253,7 +253,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
stats
=
new
Stats
();
stats
.
domElement
.
style
.
position
=
'
absolute
'
;
...
...
examples/webgl_loader_stl.html
浏览文件 @
96ad1179
...
...
@@ -163,7 +163,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
renderer
.
shadowMapEnabled
=
true
;
renderer
.
shadowMapCullFace
=
THREE
.
CullFaceBack
;
...
...
examples/webgl_loader_utf8.html
浏览文件 @
96ad1179
...
...
@@ -125,7 +125,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
renderer
.
shadowMapEnabled
=
true
;
renderer
.
shadowMapType
=
THREE
.
PCFShadowMap
;
...
...
examples/webgl_marchingcubes.html
浏览文件 @
96ad1179
...
...
@@ -171,7 +171,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
// CONTROLS
...
...
examples/webgl_materials2.html
浏览文件 @
96ad1179
...
...
@@ -128,7 +128,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
//
...
...
examples/webgl_materials_bumpmap.html
浏览文件 @
96ad1179
...
...
@@ -188,7 +188,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
//
...
...
examples/webgl_materials_bumpmap_skin.html
浏览文件 @
96ad1179
...
...
@@ -197,7 +197,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
//
...
...
examples/webgl_materials_lightmap.html
浏览文件 @
96ad1179
...
...
@@ -142,7 +142,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
// STATS
...
...
examples/webgl_materials_normalmap.html
浏览文件 @
96ad1179
...
...
@@ -219,7 +219,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
//
...
...
examples/webgl_materials_normalmap2.html
浏览文件 @
96ad1179
...
...
@@ -162,7 +162,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
//
...
...
examples/webgl_performance_doublesided.html
浏览文件 @
96ad1179
...
...
@@ -44,8 +44,6 @@
var
windowHalfX
=
SCREEN_WIDTH
/
2
;
var
windowHalfY
=
SCREEN_HEIGHT
/
2
;
var
FANCY
=
true
;
init
();
animate
();
...
...
@@ -68,32 +66,24 @@
light
.
position
.
set
(
-
4000
,
0
,
0
);
scene
.
add
(
light
);
if
(
FANCY
)
{
var
light
=
new
THREE
.
PointLight
(
0xffaa00
,
2
,
3000
);
light
.
position
.
set
(
0
,
0
,
0
);
scene
.
add
(
light
);
var
path
=
"
textures/cube/SwedishRoyalCastle/
"
;
var
format
=
'
.jpg
'
;
var
urls
=
[
path
+
'
px
'
+
format
,
path
+
'
nx
'
+
format
,
path
+
'
py
'
+
format
,
path
+
'
ny
'
+
format
,
path
+
'
pz
'
+
format
,
path
+
'
nz
'
+
format
];
var
reflectionCube
=
THREE
.
ImageUtils
.
loadTextureCube
(
urls
);
reflectionCube
.
format
=
THREE
.
RGBFormat
;
var
material
=
new
THREE
.
MeshPhongMaterial
(
{
specular
:
0xffffff
,
shininess
:
100
,
envMap
:
reflectionCube
,
combine
:
THREE
.
MixOperation
,
reflectivity
:
0.1
,
side
:
THREE
.
DoubleSide
}
);
material
.
wrapAround
=
true
;
material
.
wrapRGB
.
set
(
0.5
,
0.5
,
0.5
);
var
light
=
new
THREE
.
PointLight
(
0xffaa00
,
2
,
3000
);
light
.
position
.
set
(
0
,
0
,
0
);
scene
.
add
(
light
);
}
else
{
var
path
=
"
textures/cube/SwedishRoyalCastle/
"
;
var
format
=
'
.jpg
'
;
var
urls
=
[
path
+
'
px
'
+
format
,
path
+
'
nx
'
+
format
,
path
+
'
py
'
+
format
,
path
+
'
ny
'
+
format
,
path
+
'
pz
'
+
format
,
path
+
'
nz
'
+
format
];
var
material
=
new
THREE
.
MeshPhongMaterial
(
{
specular
:
0xffffff
,
shading
:
THREE
.
SmoothShading
,
doubleSided
:
true
}
);
var
reflectionCube
=
THREE
.
ImageUtils
.
loadTextureCube
(
urls
);
reflectionCube
.
format
=
THREE
.
RGBFormat
;
}
var
material
=
new
THREE
.
MeshPhongMaterial
(
{
specular
:
0xffffff
,
shininess
:
100
,
envMap
:
reflectionCube
,
combine
:
THREE
.
MixOperation
,
reflectivity
:
0.1
,
side
:
THREE
.
DoubleSide
}
);
material
.
wrapAround
=
true
;
material
.
wrapRGB
.
set
(
0.5
,
0.5
,
0.5
);
var
geometry
=
new
THREE
.
SphereGeometry
(
1
,
32
,
16
,
0
,
Math
.
PI
);
...
...
@@ -116,13 +106,12 @@
}
renderer
=
new
THREE
.
WebGLRenderer
(
{
antialias
:
FANCY
,
alpha
:
false
}
);
renderer
=
new
THREE
.
WebGLRenderer
(
{
antialias
:
true
,
alpha
:
false
}
);
renderer
.
setClearColor
(
0x050505
,
1
);
renderer
.
setSize
(
SCREEN_WIDTH
,
SCREEN_HEIGHT
);
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
FANCY
;
container
.
appendChild
(
renderer
.
domElement
);
...
...
examples/webgl_shading_physical.html
浏览文件 @
96ad1179
...
...
@@ -354,7 +354,6 @@
renderer
.
gammaInput
=
true
;
renderer
.
gammaOutput
=
true
;
renderer
.
physicallyBasedShading
=
true
;
//
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录