Skip to content

Commit fbb33b8

Browse files
authored
Merge pull request #16074 from Mugen87/dev27
Docs: Clean up
2 parents f5d3dd9 + e5a0cbe commit fbb33b8

File tree

3 files changed

+0
-54
lines changed

3 files changed

+0
-54
lines changed

docs/api/en/renderers/WebGLRenderer.html

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,6 @@ <h3>[property:Number toneMappingWhitePoint]</h3>
279279

280280
<h2>Methods</h2>
281281

282-
<h3>[method:Integer allocTextureUnit]</h3>
283-
<p>
284-
Attempt to allocate a texture unit for use by a shader. Will warn if trying to allocate
285-
more texture units than the GPU supports. This is mainly used internally.
286-
See [page:WebGLRenderer.capabilities capabilities.maxTextures].
287-
</p>
288-
289282
<h3>[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )</h3>
290283
<p>
291284
Tells the renderer to clear its color, depth or stencil drawing buffer(s).
@@ -466,26 +459,6 @@ <h3>[method:null setSize]( [param:Integer width], [param:Integer height], [param
466459
Setting [page:Boolean updateStyle] to false prevents any style changes to the output canvas.
467460
</p>
468461

469-
<h3>[method:null setTexture2D]( [param:Texture texture], [param:number slot] )</h3>
470-
<p>
471-
texture -- The [page:Texture texture] that needs to be set.<br />
472-
slot -- The number indicating which slot should be used by the texture.<br /><br />
473-
474-
This method sets the correct texture to the correct slot for the WebGL shader.
475-
The slot number can be found as a value of the uniform of the sampler.<br /><br />
476-
477-
Note: This method replaces the older [method:null setTexture] method.
478-
</p>
479-
480-
<h3>[method:null setTextureCube]( [param:CubeTexture cubeTexture], [param:Number slot] )</h3>
481-
<p>
482-
texture -- The [page:CubeTexture cubeTexture] that needs to be set.<br />
483-
slot -- The number indicating which slot should be used by the texture.<br /><br />
484-
485-
This method sets the correct texture to the correct slot for the WebGL shader.
486-
The slot number can be found as a value of the uniform of the sampler.
487-
</p>
488-
489462
<h3>[method:null setViewport]( [param:Integer x], [param:Integer y], [param:Integer width], [param:Integer height] )<br />
490463
[method:null setViewport]( [param:Vector4 vector] )</h3>
491464

docs/api/zh/renderers/WebGLRenderer.html

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,6 @@ <h3>[property:Number toneMappingWhitePoint]</h3>
254254

255255
<h2>方法</h2>
256256

257-
<h3>[method:Integer allocTextureUnit]</h3>
258-
<p>
259-
尝试分配纹理单元以供着色器使用。如果尝试分配超过GPU支持量的纹理单元,则会报警告。主要供内部使用。
260-
请参阅[page:WebGLRenderer.capabilities capabilities.maxTextures]。
261-
</p>
262-
263257
<h3>[method:null clear]( [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )</h3>
264258
<p>
265259
告诉渲染器清除颜色、深度或模板缓存.
@@ -412,23 +406,6 @@ <h3>[method:null setSize]( [param:Integer width], [param:Integer height], [param
412406
将[page:Boolean updateStyle]设置为false以阻止对canvas的样式做任何改变。
413407
</p>
414408

415-
<h3>[method:null setTexture2D]( [param:Texture texture], [param:number slot] )</h3>
416-
<p>
417-
texture -- 需被设置的[page:Texture texture]<br />
418-
slot -- 纹理应该使用的插槽号<br /><br />
419-
该方法为WebGL着色器将正确的纹理设置到正确的插槽中。插槽号可作为取样器的全局变量(uniform)<br /><br />
420-
421-
说明: 该方法取代了旧的[method:null setTexture]方法
422-
</p>
423-
424-
<h3>[method:null setTextureCube]( [param:CubeTexture cubeTexture], [param:Number slot] )</h3>
425-
<p>
426-
texture -- 需要被设置的[page:CubeTexture cubeTexture]<br />
427-
slot -- 纹理应该使用的插槽号<br /><br />
428-
429-
该方法为WebGL着色器将正确的纹理设置到正确的插槽中。插槽号可作为取样器的全局变量(uniform)
430-
</p>
431-
432409
<h3>[method:null setViewport]( [param:Integer x], [param:Integer y], [param:Integer width], [param:Integer height] )</h3>
433410
<p>将视口大小设置为(x, y)到 (x + width, y + height).</p>
434411

src/renderers/WebGLRenderer.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ export class WebGLRenderer implements Renderer {
178178
properties: WebGLProperties;
179179
renderLists: WebGLRenderLists;
180180
state: WebGLState;
181-
allocTextureUnit: any;
182181

183182
vr: WebVRManager;
184183

@@ -336,9 +335,6 @@ export class WebGLRenderer implements Renderer {
336335
/**
337336
* @deprecated
338337
*/
339-
setTexture(texture: Texture, slot: number): void;
340-
setTexture2D(texture: Texture, slot: number): void;
341-
setTextureCube(texture: Texture, slot: number): void;
342338
getRenderTarget(): RenderTarget;
343339
/**
344340
* @deprecated Use {@link WebGLRenderer#getRenderTarget .getRenderTarget()} instead.

0 commit comments

Comments
 (0)