gl-texture2d
Advanced tools
Comparing version 0.1.10 to 0.1.11
{ | ||
"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) { |
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
20222
397