gl-texture2d
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "gl-texture2d", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "WebGL texture wrapper", | ||
@@ -5,0 +5,0 @@ "main": "texture.js", |
@@ -147,3 +147,3 @@ gl-texture2d | ||
#### `tex.shape` | ||
An array representing the dimensions of the texture in `[rows, columns]`. Writing to this value will resize the texture and invalidate its contents. For example, to resize the texture `tex` to the shape `[newWidth, newHeight]` you can do: | ||
An array representing the dimensions of the texture in `[width, height]`. Writing to this value will resize the texture and invalidate its contents. For example, to resize the texture `tex` to the shape `[newWidth, newHeight]` you can do: | ||
@@ -155,3 +155,3 @@ ```javascript | ||
#### `tex.wrap` | ||
Texture wrap around behavior for rows/columns of the texture. Used to set/get `[gl.TEXTURE_WRAP_T, gl.TEXTURE_WRAP_S]`. Defaults to `[gl.CLAMP_TO_EDGE, gl.CLAMP_TO_EDGE]`. To update this value, write to it with a vector. For example, | ||
Texture wrap around behavior for x/y of the texture. Used to set/get `[gl.TEXTURE_WRAP_T, gl.TEXTURE_WRAP_S]`. Defaults to `[gl.CLAMP_TO_EDGE, gl.CLAMP_TO_EDGE]`. To update this value, write to it with a vector. For example, | ||
@@ -158,0 +158,0 @@ ```javascript |
@@ -499,3 +499,3 @@ "use strict" | ||
} | ||
if(type === gl.FLOAT && !!webglew(gl).texture_float) { | ||
if(type === gl.FLOAT && !webglew(gl).texture_float) { | ||
type = gl.UNSIGNED_BYTE | ||
@@ -502,0 +502,0 @@ packed = false |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24204