Socket
Socket
Sign inDemoInstall

twgl.js

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twgl.js - npm Package Compare versions

Comparing version 4.20.0 to 4.21.0

3

dist/4.x/twgl-full.d.ts

@@ -261,5 +261,2 @@

export function createProgramFromSources(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram;
export function createUniformSettersAndUniformTree(gl: WebGLRenderingContext, program: WebGLProgram): {
[key: string]: (...params: any[]) => any;
};
export function createUniformSetters(gl: WebGLRenderingContext, program: WebGLProgram): {

@@ -266,0 +263,0 @@ [key: string]: (...params: any[]) => any;

@@ -261,5 +261,2 @@

export function createProgramFromSources(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): WebGLProgram;
export function createUniformSettersAndUniformTree(gl: WebGLRenderingContext, program: WebGLProgram): {
[key: string]: (...params: any[]) => any;
};
export function createUniformSetters(gl: WebGLRenderingContext, program: WebGLProgram): {

@@ -266,0 +263,0 @@ [key: string]: (...params: any[]) => any;

2

package.json
{
"name": "twgl.js",
"version": "4.20.0",
"version": "4.21.0",
"description": "A Tiny WebGL helper library",

@@ -5,0 +5,0 @@ "main": "dist/4.x/twgl-full.js",

@@ -402,3 +402,3 @@ TWGL: A Tiny WebGL helper Library<div id="pronounce" style="font-size: xx-small;">[rhymes with wiggle]</div>

],
})
});
```

@@ -425,2 +425,12 @@

If you just want to set the 2nd light in TWGL you can do this
```javascript
const progInfo = twgl.createProgramInfo(gl, [vs, fs]);
...
twgl.setUniforms(progInfo, {
lights[1]: { intensity: 5.0, shininess: 100, color: [1, 0, 0, 1] },
});
```
### Compare

@@ -427,0 +437,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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