Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gl-texture2d

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-texture2d - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc