|
@@ -13,33 +13,33 @@
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
<p class="desc">
|
|
|
- Since r118 [page:WebGLRenderer] automatically uses a WebGL 2 rendering context. When upgrading an existing project to
|
|
|
- => r118, applications might break because of two reasons:
|
|
|
+ 自r118起,[page:WebGLRenderer]会自动使用 WebGL 2 渲染上下文。当升级一个已存在的项目到 => r118 ,
|
|
|
+ 应用程序可能会因为下列两种原因而损坏:
|
|
|
|
|
|
<ul>
|
|
|
- <li>Custom shader code needs to be GLSL 3.0 conform.</li>
|
|
|
+ <li>自定义着色器代码必须符合GLSL 3.0。</li>
|
|
|
<li>WebGL 1 extension checks have to be changed.</li>
|
|
|
</ul>
|
|
|
|
|
|
- If you can't afford the time to upgrade your code but still want to use the latest version, you can use [name]. This
|
|
|
- version of the renderer will enforce a WebGL 1 rendering context.
|
|
|
+ 如果你不能够花时间来升级你的代码,但仍然想要使用最新版本,那你就可以使用[name]。
|
|
|
+ 这一版本的渲染器会强制使用 WebGL 1 渲染上下文。
|
|
|
</p>
|
|
|
|
|
|
- <h2>Constructor</h2>
|
|
|
+ <h2>构造函数</h2>
|
|
|
|
|
|
<h3>[name]( [param:Object parameters] )</h3>
|
|
|
<p>
|
|
|
Creates a new [name].
|
|
|
</p>
|
|
|
|
|
|
- <h2>Properties</h2>
|
|
|
+ <h2>属性</h2>
|
|
|
<p>See the base [page:WebGLRenderer] class for common properties.</p>
|
|
|
|
|
|
|
|
|
- <h2>Methods</h2>
|
|
|
+ <h2>方法</h2>
|
|
|
<p>See the base [page:WebGLRenderer] class for common methods.</p>
|
|
|
|
|
|
- <h2>Source</h2>
|
|
|
+ <h2>源码</h2>
|
|
|
|
|
|
<p>
|
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|