Comparing version 4.20.0 to 4.21.0
@@ -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; |
{ | ||
"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
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
590
1045956
25810