Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
fbb33b8a
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,发现更多精彩内容 >>
未验证
提交
fbb33b8a
编写于
3月 27, 2019
作者:
M
Mr.doob
提交者:
GitHub
3月 27, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16074 from Mugen87/dev27
Docs: Clean up
上级
f5d3dd91
e5a0cbeb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
54 deletion
+0
-54
docs/api/en/renderers/WebGLRenderer.html
docs/api/en/renderers/WebGLRenderer.html
+0
-27
docs/api/zh/renderers/WebGLRenderer.html
docs/api/zh/renderers/WebGLRenderer.html
+0
-23
src/renderers/WebGLRenderer.d.ts
src/renderers/WebGLRenderer.d.ts
+0
-4
未找到文件。
docs/api/en/renderers/WebGLRenderer.html
浏览文件 @
fbb33b8a
...
...
@@ -279,13 +279,6 @@
<h2>
Methods
</h2>
<h3>
[method:Integer allocTextureUnit]
</h3>
<p>
Attempt to allocate a texture unit for use by a shader. Will warn if trying to allocate
more texture units than the GPU supports. This is mainly used internally.
See [page:WebGLRenderer.capabilities capabilities.maxTextures].
</p>
<h3>
[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )
</h3>
<p>
Tells the renderer to clear its color, depth or stencil drawing buffer(s).
...
...
@@ -466,26 +459,6 @@
Setting [page:Boolean updateStyle] to false prevents any style changes to the output canvas.
</p>
<h3>
[method:null setTexture2D]( [param:Texture texture], [param:number slot] )
</h3>
<p>
texture -- The [page:Texture texture] that needs to be set.
<br
/>
slot -- The number indicating which slot should be used by the texture.
<br
/><br
/>
This method sets the correct texture to the correct slot for the WebGL shader.
The slot number can be found as a value of the uniform of the sampler.
<br
/><br
/>
Note: This method replaces the older [method:null setTexture] method.
</p>
<h3>
[method:null setTextureCube]( [param:CubeTexture cubeTexture], [param:Number slot] )
</h3>
<p>
texture -- The [page:CubeTexture cubeTexture] that needs to be set.
<br
/>
slot -- The number indicating which slot should be used by the texture.
<br
/><br
/>
This method sets the correct texture to the correct slot for the WebGL shader.
The slot number can be found as a value of the uniform of the sampler.
</p>
<h3>
[method:null setViewport]( [param:Integer x], [param:Integer y], [param:Integer width], [param:Integer height] )
<br
/>
[method:null setViewport]( [param:Vector4 vector] )
</h3>
...
...
docs/api/zh/renderers/WebGLRenderer.html
浏览文件 @
fbb33b8a
...
...
@@ -254,12 +254,6 @@
<h2>
方法
</h2>
<h3>
[method:Integer allocTextureUnit]
</h3>
<p>
尝试分配纹理单元以供着色器使用。如果尝试分配超过GPU支持量的纹理单元,则会报警告。主要供内部使用。
请参阅[page:WebGLRenderer.capabilities capabilities.maxTextures]。
</p>
<h3>
[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )
</h3>
<p>
告诉渲染器清除颜色、深度或模板缓存.
...
...
@@ -412,23 +406,6 @@
将[page:Boolean updateStyle]设置为false以阻止对canvas的样式做任何改变。
</p>
<h3>
[method:null setTexture2D]( [param:Texture texture], [param:number slot] )
</h3>
<p>
texture -- 需被设置的[page:Texture texture]
<br
/>
slot -- 纹理应该使用的插槽号
<br
/><br
/>
该方法为WebGL着色器将正确的纹理设置到正确的插槽中。插槽号可作为取样器的全局变量(uniform)
<br
/><br
/>
说明: 该方法取代了旧的[method:null setTexture]方法
</p>
<h3>
[method:null setTextureCube]( [param:CubeTexture cubeTexture], [param:Number slot] )
</h3>
<p>
texture -- 需要被设置的[page:CubeTexture cubeTexture]
<br
/>
slot -- 纹理应该使用的插槽号
<br
/><br
/>
该方法为WebGL着色器将正确的纹理设置到正确的插槽中。插槽号可作为取样器的全局变量(uniform)
</p>
<h3>
[method:null setViewport]( [param:Integer x], [param:Integer y], [param:Integer width], [param:Integer height] )
</h3>
<p>
将视口大小设置为(x, y)到 (x + width, y + height).
</p>
...
...
src/renderers/WebGLRenderer.d.ts
浏览文件 @
fbb33b8a
...
...
@@ -178,7 +178,6 @@ export class WebGLRenderer implements Renderer {
properties
:
WebGLProperties
;
renderLists
:
WebGLRenderLists
;
state
:
WebGLState
;
allocTextureUnit
:
any
;
vr
:
WebVRManager
;
...
...
@@ -336,9 +335,6 @@ export class WebGLRenderer implements Renderer {
/**
* @deprecated
*/
setTexture
(
texture
:
Texture
,
slot
:
number
):
void
;
setTexture2D
(
texture
:
Texture
,
slot
:
number
):
void
;
setTextureCube
(
texture
:
Texture
,
slot
:
number
):
void
;
getRenderTarget
():
RenderTarget
;
/**
* @deprecated Use {@link WebGLRenderer#getRenderTarget .getRenderTarget()} instead.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录