Hello world!
I'm multi-line,
formatted,
rotated text with emoji (😀), RTL text
من فارسی صحبت میکنم,
@@ -60,13 +60,8 @@
const srcFormat = gl.RGBA;
const srcType = gl.UNSIGNED_BYTE;
- if (typeof gl.texElementImage2D === 'function') {
- gl.texElementImage2D(gl.TEXTURE_2D, level, internalFormat,
+ gl.texElementImage2D(gl.TEXTURE_2D, level, internalFormat,
srcFormat, srcType, drawElement);
- } else {
- gl.texElement2D(gl.TEXTURE_2D, level, internalFormat,
- srcFormat, srcType, drawElement);
- }
// Linear texture filtering produces better results than mipmap with text.
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
diff --git a/README.md b/README.md
index 24904d8..b3bd795 100644
--- a/README.md
+++ b/README.md
@@ -21,12 +21,11 @@ There is no web API to easily render complex layouts of text and other content i
* **Composing HTML Elements with Shaders.** A limited set of CSS shaders, such as filter effects, are already available, but there is a desire to use general WebGL shaders with HTML.
* **HTML Rendering in a 3D Context.** 3D aspects of sites and games need to render rich 2D content into surfaces within a 3D scene.
-## Proposed solution: `layoutsubtree`, `drawElementImage`/`texElementImage2D`, `fireOnEveryPaint`, and `setHitTestRegions`
+## Proposed solution: `layoutsubtree`, `drawElementImage`/`texElementImage2D`, and `fireOnEveryPaint`
-* The `layoutsubtree` attribute on a `