Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
702dd37b
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,发现更多精彩内容 >>
提交
702dd37b
编写于
4月 18, 2019
作者:
A
Alex Goldring
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug to literal object, and error checks disabled by default
Took 11 minutes
上级
b2790d52
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
21 addition
and
88 deletion
+21
-88
docs/api/en/renderers/WebGLRenderer.html
docs/api/en/renderers/WebGLRenderer.html
+6
-2
docs/api/en/renderers/WebGLRendererDebug.html
docs/api/en/renderers/WebGLRendererDebug.html
+0
-33
docs/api/zh/renderers/WebGLRenderer.html
docs/api/zh/renderers/WebGLRenderer.html
+6
-2
docs/api/zh/renderers/WebGLRendererDebug.html
docs/api/zh/renderers/WebGLRendererDebug.html
+0
-34
src/renderers/WebGLRenderer.js
src/renderers/WebGLRenderer.js
+9
-2
src/renderers/WebGLRendererDebug.js
src/renderers/WebGLRendererDebug.js
+0
-15
未找到文件。
docs/api/en/renderers/WebGLRenderer.html
浏览文件 @
702dd37b
...
...
@@ -92,9 +92,13 @@
Default is *true*.
</p>
<h3>
[property:
WebGLRendererDebug debug
]
</h3>
<h3>
[property:
Boolean debug.checkShaderErrors
]
</h3>
<p>
Contains debug configuration of the renderer
If [page:.checkShaderErrors checkShaderErrors] is true, defines whether material shader programs are checked
for errors during compilation and linkage process. It may be useful to disable this check in production for performance gain.
It is strongly recommended to keep these checks enabled during development.
If the shader does not compile and link - it will not work and associated material will not render.
Default is *true*.
</p>
<h3>
[property:Object capabilities]
</h3>
...
...
docs/api/en/renderers/WebGLRendererDebug.html
已删除
100644 → 0
浏览文件 @
b2790d52
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<base
href=
"../../../"
/>
<script
src=
"list.js"
></script>
<script
src=
"page.js"
></script>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"page.css"
/>
</head>
<body>
<h1>
[name]
</h1>
<p
class=
"desc"
>
The debug configuration container for WebGLRenderer
</p>
<h2>
Properties
</h2>
<h3>
[property:Boolean checkShaderErrors]
</h3>
<p>
If [page:.checkShaderErrors checkShaderErrors] is true, defines whether material shader programs are checked
for errors during compilation and linkage process. It may be useful to disable this check in production for performance gain.
It is strongly recommended to keep these checks enabled during development.
If the shader does not compile and link - it will not work and associated material will not render.
Default is *true*.
</p>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
docs/api/zh/renderers/WebGLRenderer.html
浏览文件 @
702dd37b
...
...
@@ -79,9 +79,13 @@
默认是*true*
</p>
<h3>
[property:
WebGLRendererDebug debug
]
</h3>
<h3>
[property:
Boolean debug.checkShaderErrors
]
</h3>
<p>
包含渲染器的调试配置。
如果[page:.checkShaderErrors checkShaderErrors]为true,定义是否检查材质着色器程序
编译和链接过程中的错误。 禁用此检查生产以获得性能增益可能很有用。
强烈建议在开发期间保持启用这些检查。
如果着色器没有编译和链接 - 它将无法工作,并且相关材料将不会呈现。
默认是*true*
</p>
<h3>
[property:Object capabilities]
</h3>
...
...
docs/api/zh/renderers/WebGLRendererDebug.html
已删除
100644 → 0
浏览文件 @
b2790d52
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<base
href=
"../../../"
/>
<script
src=
"list.js"
></script>
<script
src=
"page.js"
></script>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"page.css"
/>
</head>
<body>
<h1>
[name]
</h1>
<p
class=
"desc"
>
The debug configuration container for WebGLRenderer
</p>
<h2>
Properties
</h2>
<h3>
[property:Boolean checkShaderErrors]
</h3>
<p>
如果[page:.checkShaderErrors checkShaderErrors]为true,定义是否检查材质着色器程序
编译和链接过程中的错误。 禁用此检查生产以获得性能增益可能很有用。
强烈建议在开发期间保持启用这些检查。
如果着色器没有编译和链接 - 它将无法工作,并且相关材料将不会呈现。
默认是*true*
</p>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
src/renderers/WebGLRenderer.js
浏览文件 @
702dd37b
...
...
@@ -36,7 +36,6 @@ import { WebGLPrograms } from './webgl/WebGLPrograms.js';
import
{
WebGLProperties
}
from
'
./webgl/WebGLProperties.js
'
;
import
{
WebGLRenderLists
}
from
'
./webgl/WebGLRenderLists.js
'
;
import
{
WebGLRenderStates
}
from
'
./webgl/WebGLRenderStates.js
'
;
import
{
WebGLRendererDebug
}
from
"
./WebGLRendererDebug.js
"
;
import
{
WebGLShadowMap
}
from
'
./webgl/WebGLShadowMap.js
'
;
import
{
WebGLState
}
from
'
./webgl/WebGLState.js
'
;
import
{
WebGLTextures
}
from
'
./webgl/WebGLTextures.js
'
;
...
...
@@ -78,7 +77,15 @@ function WebGLRenderer( parameters ) {
this
.
domElement
=
_canvas
;
this
.
context
=
null
;
this
.
debug
=
new
WebGLRendererDebug
();
// Debug configuration container
this
.
debug
=
{
/**
* Enables error checking and reporting when shader programs are being compiled
* @type {boolean}
*/
checkShaderErrors
:
false
};
// clearing
...
...
src/renderers/WebGLRendererDebug.js
已删除
100644 → 0
浏览文件 @
b2790d52
/**
* @author Alex Goldring | https://github.com/Usnul
*/
function
WebGLRendererDebug
()
{
/**
* Enables error checking and reporting when shader programs are being compiled
* @type {boolean}
*/
this
.
checkShaderErrors
=
true
;
}
export
{
WebGLRendererDebug
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录