Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Improve WebGLRenderer page. #24008

Merged
merged 1 commit into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/api/en/renderers/WebGLRenderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h3>[property:Boolean autoClearStencil]</h3>

<h3>[property:Object debug]</h3>
<p>
- [page:Boolean checkShaderErrors]:
- [page:Boolean checkShaderErrors]:
If it 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.
Expand All @@ -122,6 +122,8 @@ <h3>[property:Object capabilities]</h3>
Maximum height * width of cube map textures that a shader can use.<br />
- [page:Integer maxFragmentUniforms]: The value of *gl.MAX_FRAGMENT_UNIFORM_VECTORS*.
The number of uniforms that can be used by a fragment shader.<br />
- [page:Integer maxSamples]: The value of *gl.MAX_SAMPLES*.
Maximum number of samples in context of Multisample anti-aliasing (MSAA).<br />
- [page:Integer maxTextureSize]: The value of *gl.MAX_TEXTURE_SIZE*.
Maximum height * width of a texture that a shader use.<br />
- [page:Integer maxTextures]: The value of *gl.MAX_TEXTURE_IMAGE_UNITS*.
Expand Down Expand Up @@ -155,7 +157,7 @@ <h3>[property:DOMElement domElement]</h3>

<h3>[property:Object extensions]</h3>
<p>
- [page:Object get]( [param:String extensionName] ):
- [page:Object get]( [param:String extensionName] ):
Used to check whether various extensions are supported and returns an object with details of the extension if available.
This method can check for the following extensions:<br />

Expand Down
3 changes: 2 additions & 1 deletion docs/api/zh/renderers/WebGLRenderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ <h3>[property:Object capabilities]</h3>
- [page:Integer maxAttributes]: *gl.MAX_VERTEX_ATTRIBS*的值<br />
- [page:Integer maxCubemapSize]: *gl.MAX_CUBE_MAP_TEXTURE_SIZE* 的值,着色器可使用的立方体贴图纹理的最大宽度*高度<br />
- [page:Integer maxFragmentUniforms]: *gl.MAX_FRAGMENT_UNIFORM_VECTORS*的值,片元着色器可使用的全局变量(uniforms)数量<br />
- [page:Integer maxSamples]: The value of *gl.MAX_SAMPLES*. Maximum number of samples in context of Multisample anti-aliasing (MSAA).<br />
- [page:Integer maxTextureSize]: *gl.MAX_TEXTURE_SIZE*的值,着色器可使用纹理的最大宽度*高度<br />
- [page:Integer maxTextures]: *gl.MAX_TEXTURE_IMAGE_UNITS的值,着色器可使用的纹理数量<br />
- [page:Integer maxVaryings]: *gl.MAX_VARYING_VECTORS*的值,着色器可使用矢量的数量<br />
Expand Down Expand Up @@ -133,7 +134,7 @@ <h3>[property:DOMElement domElement]</h3>

<h3>[property:Object extensions]</h3>
<p>
- [page:Object get]( [param:String extensionName] ):
- [page:Object get]( [param:String extensionName] ):
用于检查是否支持各种扩展,并返回一个对象,其中包含扩展的详细信息。
该方法检查以下扩展:<br />

Expand Down