Skip to content

Commit 07ec4e8

Browse files
authored
WebGLRenderer: Remove WebGL 1 support. (#27836)
1 parent 12b08b2 commit 07ec4e8

File tree

81 files changed

+333
-1449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+333
-1449
lines changed

docs/api/ar/constants/Textures.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,29 +154,29 @@ <h2>التنسيقات (Formats)</h2>
154154
ويقرأ فقط المكون الألفا. <br /> <br />
155155

156156
[page:constant RedFormat] يتجاهل المكونات الخضراء والزرقاء ويقرأ
157-
فقط المكون الأحمر. (يمكن استخدامه فقط مع سياق WebGL 2).
157+
فقط المكون الأحمر.
158158
<br /> <br />
159159

160160
[page:constant RedIntegerFormat] يتجاهل المكونات الخضراء والزرقاء
161161
ويقرأ فقط المكون الأحمر. يتم قراءة `texels` كأعداد صحيحة بدلاً من
162-
نقطة عائمة. (يمكن استخدامه فقط مع سياق WebGL 2).
162+
نقطة عائمة.
163163
<br /> <br />
164164

165165
[page:constant RGFormat] يتجاهل المكونات الألفا والزرقاء ويقرأ
166-
المكونات الحمراء والخضراء. (يمكن استخدامه فقط مع سياق WebGL 2).
166+
المكونات الحمراء والخضراء.
167167
<br /> <br />
168168

169169
[page:constant RGIntegerFormat] يتجاهل المكونات الألفا والزرقاء
170170
ويقرأ المكونات الحمراء والخضراء. يتم قراءة `texels` كأعداد صحيحة بدلاً من
171-
نقطة عائمة. (يمكن استخدامه فقط مع سياق WebGL 2).
171+
نقطة عائمة.
172172
<br /> <br />
173173

174174
[page:constant RGBAFormat] هو الافتراضي ويلتقط المكونات الحمراء والخضراء والزرقاء
175175
والألفا. <br /> <br />
176176

177177
[page:constant RGBAIntegerFormat] هو الافتراضي ويلتقط المكونات الحمراء والخضراء ،
178178
الزرقاء والألفا. يتم قراءة `texels` كأعداد صحيحة بدلاً من
179-
نقطة عائمة. (يمكن استخدامه فقط مع سياق WebGL 2).
179+
نقطة عائمة.
180180
<br /> <br />
181181

182182
[page:constant LuminanceFormat] يقرأ كل عنصر كمكون إضاءة واحد
@@ -378,9 +378,6 @@ <h2>التنسيقات الداخلية (Internal Formats)</h2>
378378
</code>
379379

380380
<p>
381-
تنبيه: تغيير التنسيق الداخلي للقوام سيؤثر فقط على
382-
القوام عند استخدام سياق WebGL 2. <br /> <br />
383-
384381
للاستخدام مع خاصية [page:Texture.internalFormat internalFormat] للقوام ،
385382
هذه تحدد كيفية تخزين عناصر قوام ، أو `texels` ،
386383
على وحدة معالجة الرسومات. <br /> <br />

docs/api/ar/core/Uniform.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h2>أنواع الموحدات (Uniform types)</h2>
5555
<td>[page:Number]</td>
5656
</tr>
5757
<tr>
58-
<td>uint (WebGL 2)</td>
58+
<td>uint</td>
5959
<td>[page:Number]</td>
6060
</tr>
6161
<tr>

docs/api/ar/materials/ShaderMaterial.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,6 @@ <h3>[property:Object extensions]</h3>
324324
كائن يحتوي على الخصائص التالية:
325325
<code>
326326
this.extensions = {
327-
derivatives: false, // set to use derivatives
328-
fragDepth: false, // set to use fragment depth values
329-
drawBuffers: false, // set to use draw buffers
330-
shaderTextureLOD: false, // set to use shader texture LOD
331327
clipCullDistance: false, // set to use vertex shader clipping
332328
multiDraw: false // set to use vertex shader multi_draw / enable gl_DrawID
333329
};

docs/api/ar/objects/SkinnedMesh.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ <h1>[name]</h1>
1313

1414
<p class="desc">
1515
شبكة لديها [page:Skeleton] مع [page:Bone bones] يمكن استخدامها بعد ذلك
16-
لتحريك رؤوس الهندسة.<br /> <br />
17-
18-
يمكن استخدام [name] فقط مع WebGL 2.
16+
لتحريك رؤوس الهندسة.
1917
</p>
2018

2119
<iframe id="scene" src="scenes/bones-browser.html"></iframe>

docs/api/ar/renderers/WebGL1Renderer.html

Lines changed: 0 additions & 47 deletions
This file was deleted.

docs/api/en/constants/Textures.html

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,32 +166,29 @@ <h2>Formats</h2>
166166
and reads just the alpha component.<br /><br />
167167

168168
[page:constant RedFormat] discards the green and blue components and reads
169-
just the red component. (can only be used with a WebGL 2 rendering
170-
context).
169+
just the red component.
171170
<br /><br />
172171

173172
[page:constant RedIntegerFormat] discards the green and blue components
174173
and reads just the red component. The texels are read as integers instead
175-
of floating point. (can only be used with a WebGL 2 rendering context).
174+
of floating point.
176175
<br /><br />
177176

178177
[page:constant RGFormat] discards the alpha, and blue components and reads
179-
the red, and green components. (can only be used with a WebGL 2 rendering
180-
context).
178+
the red, and green components.
181179
<br /><br />
182180

183181
[page:constant RGIntegerFormat] discards the alpha, and blue components
184182
and reads the red, and green components. The texels are read as integers
185-
instead of floating point. (can only be used with a WebGL 2 rendering
186-
context).
183+
instead of floating point.
187184
<br /><br />
188185

189186
[page:constant RGBAFormat] is the default and reads the red, green, blue
190187
and alpha components.<br /><br />
191188

192189
[page:constant RGBAIntegerFormat] is the default and reads the red, green,
193190
blue and alpha components. The texels are read as integers instead of
194-
floating point. (can only be used with a WebGL 2 rendering context).
191+
floating point.
195192
<br /><br />
196193

197194
[page:constant LuminanceFormat] reads each element as a single luminance
@@ -393,9 +390,6 @@ <h2>Internal Formats</h2>
393390
</code>
394391

395392
<p>
396-
Heads up: changing the internal format of a texture will only affect the
397-
texture when using a WebGL 2 rendering context.<br /><br />
398-
399393
For use with a texture's [page:Texture.internalFormat internalFormat]
400394
property, these define how elements of a texture, or `texels`, are stored
401395
on the GPU.<br /><br />

docs/api/en/core/Uniform.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h2>Uniform types</h2>
5555
<td>[page:Number]</td>
5656
</tr>
5757
<tr>
58-
<td>uint (WebGL 2)</td>
58+
<td>uint</td>
5959
<td>[page:Number]</td>
6060
</tr>
6161
<tr>

docs/api/en/materials/ShaderMaterial.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,6 @@ <h3>[property:Object extensions]</h3>
342342
An object with the following properties:
343343
<code>
344344
this.extensions = {
345-
derivatives: false, // set to use derivatives
346-
fragDepth: false, // set to use fragment depth values
347-
drawBuffers: false, // set to use draw buffers
348-
shaderTextureLOD: false, // set to use shader texture LOD
349345
clipCullDistance: false, // set to use vertex shader clipping
350346
multiDraw: false // set to use vertex shader multi_draw / enable gl_DrawID
351347
};
@@ -368,8 +364,7 @@ <h3>[property:String fragmentShader]</h3>
368364

369365
<h3>[property:String glslVersion]</h3>
370366
<p>
371-
Defines the GLSL version of custom shader code. Only relevant for WebGL 2
372-
in order to define whether to specify GLSL 3.0 or not. Valid values are
367+
Defines the GLSL version of custom shader code. Valid values are
373368
`THREE.GLSL1` or `THREE.GLSL3`. Default is `null`.
374369
</p>
375370

docs/api/en/objects/SkinnedMesh.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ <h1>[name]</h1>
1313

1414
<p class="desc">
1515
A mesh that has a [page:Skeleton] with [page:Bone bones] that can then be
16-
used to animate the vertices of the geometry.<br /><br />
17-
18-
[name] can only be used with WebGL 2.
16+
used to animate the vertices of the geometry.
1917
</p>
2018

2119
<iframe id="scene" src="scenes/bones-browser.html"></iframe>

docs/api/en/renderers/WebGL1Renderer.html

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)