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

gl-texture2d

Package Overview
Dependencies
Maintainers
1
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 0.1.10 to 0.1.11

2

package.json
{
"name": "gl-texture2d",
"version": "0.1.10",
"version": "0.1.11",
"description": "WebGL texture wrapper",

@@ -5,0 +5,0 @@ "main": "texture.js",

@@ -7,3 +7,2 @@ "use strict"

var webglew = require("webglew")
var makeOp = require("cwise-compiler")

@@ -36,8 +35,5 @@ var linearTypes = null

var convertFloatToUint8 = makeOp({
args:["array", "array"],
pre: {args:[], body:""},
post: {args:[], body:""},
body: {args:["a", "b"], body:"var xx=b*255;if(xx<=0){a=0}else if(xx>=255){a=255}else{a=xx}"},
funcName: "assign" })
var convertFloatToUint8 = function(out, inp) {
ops.muls(out, inp, 255.0)
}

@@ -44,0 +40,0 @@ function Texture2D(gl, handle, width, height, format, type) {

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