Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
48b6a3cd
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
48b6a3cd
编写于
8月 04, 2021
作者:
M
Michael Herzog
提交者:
GitHub
8月 04, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Loaders: Use HalfFloatType as default texture type. (#22265)
上级
c2fc03c3
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
3 addition
and
16 deletion
+3
-16
examples/jsm/loaders/EXRLoader.js
examples/jsm/loaders/EXRLoader.js
+1
-1
examples/jsm/loaders/HDRCubeTextureLoader.js
examples/jsm/loaders/HDRCubeTextureLoader.js
+1
-1
examples/jsm/loaders/RGBELoader.js
examples/jsm/loaders/RGBELoader.js
+1
-1
examples/webgl_loader_gltf.html
examples/webgl_loader_gltf.html
+0
-1
examples/webgl_loader_gltf_extensions.html
examples/webgl_loader_gltf_extensions.html
+0
-1
examples/webgl_loader_gltf_transmission.html
examples/webgl_loader_gltf_transmission.html
+0
-1
examples/webgl_loader_gltf_variants.html
examples/webgl_loader_gltf_variants.html
+0
-1
examples/webgl_loader_texture_exr.html
examples/webgl_loader_texture_exr.html
+0
-1
examples/webgl_materials_physical_clearcoat.html
examples/webgl_materials_physical_clearcoat.html
+0
-1
examples/webgl_materials_physical_reflectivity.html
examples/webgl_materials_physical_reflectivity.html
+0
-1
examples/webgl_materials_physical_transmission.html
examples/webgl_materials_physical_transmission.html
+0
-1
examples/webgl_materials_standard.html
examples/webgl_materials_standard.html
+0
-1
examples/webgl_materials_variations_physical.html
examples/webgl_materials_variations_physical.html
+0
-1
examples/webgl_materials_variations_standard.html
examples/webgl_materials_variations_standard.html
+0
-1
examples/webgl_postprocessing_3dlut.html
examples/webgl_postprocessing_3dlut.html
+0
-1
examples/webgl_tonemapping.html
examples/webgl_tonemapping.html
+0
-1
未找到文件。
examples/jsm/loaders/EXRLoader.js
浏览文件 @
48b6a3cd
...
...
@@ -93,7 +93,7 @@ class EXRLoader extends DataTextureLoader {
super
(
manager
);
this
.
type
=
FloatType
;
this
.
type
=
Half
FloatType
;
}
...
...
examples/jsm/loaders/HDRCubeTextureLoader.js
浏览文件 @
48b6a3cd
...
...
@@ -22,7 +22,7 @@ class HDRCubeTextureLoader extends Loader {
super
(
manager
);
this
.
hdrLoader
=
new
RGBELoader
();
this
.
type
=
FloatType
;
this
.
type
=
Half
FloatType
;
}
...
...
examples/jsm/loaders/RGBELoader.js
浏览文件 @
48b6a3cd
...
...
@@ -21,7 +21,7 @@ class RGBELoader extends DataTextureLoader {
super
(
manager
);
this
.
type
=
FloatType
;
this
.
type
=
Half
FloatType
;
}
...
...
examples/webgl_loader_gltf.html
浏览文件 @
48b6a3cd
...
...
@@ -40,7 +40,6 @@
scene
=
new
THREE
.
Scene
();
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
royal_esplanade_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_loader_gltf_extensions.html
浏览文件 @
48b6a3cd
...
...
@@ -158,7 +158,6 @@
// Load background and generate envMap
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
venice_sunset_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_loader_gltf_transmission.html
浏览文件 @
48b6a3cd
...
...
@@ -42,7 +42,6 @@
scene
=
new
THREE
.
Scene
();
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
royal_esplanade_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_loader_gltf_variants.html
浏览文件 @
48b6a3cd
...
...
@@ -43,7 +43,6 @@
scene
=
new
THREE
.
Scene
();
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
quarry_01_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_loader_texture_exr.html
浏览文件 @
48b6a3cd
...
...
@@ -48,7 +48,6 @@
camera
=
new
THREE
.
OrthographicCamera
(
-
aspect
,
aspect
,
1
,
-
1
,
0
,
1
);
new
EXRLoader
()
.
setDataType
(
THREE
.
FloatType
)
.
load
(
'
textures/memorial.exr
'
,
function
(
texture
,
textureData
)
{
// memorial.exr is NPOT
...
...
examples/webgl_materials_physical_clearcoat.html
浏览文件 @
48b6a3cd
...
...
@@ -46,7 +46,6 @@
scene
.
add
(
group
);
new
HDRCubeTextureLoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/cube/pisaHDR/
'
)
.
load
(
[
'
px.hdr
'
,
'
nx.hdr
'
,
'
py.hdr
'
,
'
ny.hdr
'
,
'
pz.hdr
'
,
'
nz.hdr
'
],
function
(
texture
)
{
...
...
examples/webgl_materials_physical_reflectivity.html
浏览文件 @
48b6a3cd
...
...
@@ -113,7 +113,6 @@
}
);
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
royal_esplanade_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_materials_physical_transmission.html
浏览文件 @
48b6a3cd
...
...
@@ -39,7 +39,6 @@
let
mesh
;
const
hdrEquirect
=
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
royal_esplanade_1k.hdr
'
,
function
()
{
...
...
examples/webgl_materials_standard.html
浏览文件 @
48b6a3cd
...
...
@@ -121,7 +121,6 @@
const
filename
=
environments
[
name
].
filename
;
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
filename
,
function
(
hdrEquirect
)
{
...
...
examples/webgl_materials_variations_physical.html
浏览文件 @
48b6a3cd
...
...
@@ -47,7 +47,6 @@
scene
=
new
THREE
.
Scene
();
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
pedestrian_overpass_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_materials_variations_standard.html
浏览文件 @
48b6a3cd
...
...
@@ -52,7 +52,6 @@
imgTexture
=
null
;
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
pedestrian_overpass_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_postprocessing_3dlut.html
浏览文件 @
48b6a3cd
...
...
@@ -63,7 +63,6 @@
scene
=
new
THREE
.
Scene
();
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
)
.
load
(
'
royal_esplanade_1k.hdr
'
,
function
(
texture
)
{
...
...
examples/webgl_tonemapping.html
浏览文件 @
48b6a3cd
...
...
@@ -85,7 +85,6 @@
controls
.
update
();
const
rgbeLoader
=
new
RGBELoader
()
.
setDataType
(
THREE
.
FloatType
)
.
setPath
(
'
textures/equirectangular/
'
);
const
gltfLoader
=
new
GLTFLoader
().
setPath
(
'
models/gltf/DamagedHelmet/glTF/
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录